OneLake Data Access Security - Get Principal Access Records
Gets the principal access records for a principal on an item.
Note
Principal access records is currently in Preview (learn more).
Returns the consolidated effective access of the specified principal on a given item: the permitted and denied paths, the level of access, and the column-level (CLS) and row-level (RLS) security constraints, computed at query time across all applicable roles.
This API supports pagination.
Permissions
A workspace admin or member can query the effective access of any principal. A workspace viewer or contributor can query only their own effective access, in which case principalId must match the caller's own object identifier.
Required Delegated Scopes
OneLake.Read.All or OneLake.ReadWrite.All
Microsoft Entra supported identities
This API supports the Microsoft identities listed in this section.
| Identity | Support |
|---|---|
| User | Yes |
| Service principal and Managed identities | Yes |
Interface
GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{itemId}/principalDataAccessRecords
GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{itemId}/principalDataAccessRecords?principalId={principalId}&rootPath={rootPath}&expandTables={expandTables}&pageSize={pageSize}&continuationToken={continuationToken}
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
item
|
path | True |
string (uuid) |
The ID of the Fabric item to evaluate access on. |
|
workspace
|
path | True |
string (uuid) |
The workspace ID. |
|
continuation
|
query |
string |
A token for retrieving the next page of results. |
|
|
expand
|
query |
boolean |
When |
|
|
page
|
query |
integer |
The requested number of entries to return per page. The default is 500 and the server-enforced maximum is 1000. Larger values are clamped to the maximum. |
|
|
principal
|
query |
string (uuid) |
The object ID of the principal whose effective access is evaluated. A workspace viewer or contributor may only specify their own object ID. If omitted, default value is the caller's id |
|
|
root
|
query |
string |
Scopes results to entries under a known customer-facing root path (Right now, only |
Request Header
| Name | Required | Type | Description |
|---|---|---|---|
| If-Match |
string |
An ETag value. The ETag must be specified in quotes. If provided, the call will succeed only if the resource's ETag matches the provided ETag. |
|
| If-None-Match |
string |
An ETag value. The ETag must be specified in quotes. If provided, the call will succeed only if the resource's ETag doesn't match the provided ETag. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Request completed successfully. Headers: ETag |
|
| 429 Too Many Requests |
The service rate limit was exceeded. The server returns a Headers Retry-After: integer |
|
| Other Status Codes |
Common error codes:
|
Examples
| Get principal access example with expanded tables |
| Get principal access example with folders and tables |
Get principal access example with expanded tables
Sample request
GET https://api.fabric.microsoft.com/v1/workspaces/cfafbeb1-8037-4d0c-896e-a46fb27ff222/items/25bac802-080d-4f73-8a42-1b406eb1fceb/principalDataAccessRecords?principalId=8eabf2c9-1f3d-4a10-9d2e-0b6d1c2f4e77&rootPath=Tables&expandTables=True
Sample response
ETag: "ccaa9212-0f33-4a42-ae8c-9de28f112222"
{
"value": [
{
"type": "ExpandedTable",
"path": "/Tables/dbo/dimension_customer",
"access": [
"Read"
],
"effect": "Permit",
"columnConstraints": [
{
"name": "CustomerKey",
"columnEffect": "Permit",
"columnAction": [
"Read"
]
}
],
"rowsConstraint": "SELECT * FROM [dbo].[dimension_customer] WHERE [CustomerKey] > 10"
},
{
"type": "ExpandedTable",
"path": "/Tables/dbo/dimension_employee",
"access": [
"Read"
],
"effect": "Permit"
}
],
"continuationToken": "eyJza2lwIjoyMDAwfQ==",
"continuationUri": "https://api.fabric.microsoft.com/v1/workspaces/cfafbeb1-8037-4d0c-896e-a46fb27ff222/items/25bac802-080d-4f73-8a42-1b406eb1fceb/principalDataAccessRecords?principalId=8eabf2c9-1f3d-4a10-9d2e-0b6d1c2f4e77&rootPath=Tables&expandTables=true&continuationToken=eyJza2lwIjoyMDAwfQ%3D%3D"
}
Get principal access example with folders and tables
Sample request
GET https://api.fabric.microsoft.com/v1/workspaces/cfafbeb1-8037-4d0c-896e-a46fb27ff222/items/25bac802-080d-4f73-8a42-1b406eb1fceb/principalDataAccessRecords?principalId=8eabf2c9-1f3d-4a10-9d2e-0b6d1c2f4e77&rootPath=Tables&expandTables={expandTables}
Sample response
ETag: "ccaa9212-0f33-4a42-ae8c-9de28f112222"
{
"value": [
{
"type": "Table",
"path": "/Tables/db1",
"access": [
"Read"
],
"effect": "Permit"
},
{
"type": "Table",
"path": "/Tables/db2",
"access": [
"Read"
],
"effect": "Deny"
},
{
"type": "Table",
"path": "/Tables/dbo",
"access": [
"Read"
],
"effect": "Permit",
"columns": [
{
"tablePath": "/Tables/dbo/dimension_customer",
"columnConstraints": [
{
"name": "CustomerKey",
"columnEffect": "Permit",
"columnAction": [
"Read"
]
},
{
"name": "PostalCode",
"columnEffect": "Permit",
"columnAction": [
"Read"
]
}
]
}
],
"rows": [
{
"tablePath": "/Tables/dbo/dimension_customer",
"rowsConstraint": "SELECT * FROM [dbo].[dimension_customer] WHERE [CustomerKey] > 10"
}
]
}
],
"continuationToken": null,
"continuationUri": null
}
Definitions
| Name | Description |
|---|---|
|
Column |
The array of actions applied to the columnNames. This determines which actions a user will be able to perform on columns. The allowed values are: Read. Additional columnAction types may be added over time. |
|
Column |
The effect given to the columnNames. The only allowed value is Permit. Additional columnEffect types may be added over time. |
|
Data |
A paginated list of a principal's metadata records on an item, each with the level of access and any column-level and row-level constraints. The effective access state is exposed through the response ETag for change detection and concurrency control. |
|
Error |
A structured parameter providing additional machine-readable context about an error. |
|
Error |
The error related resource details object. |
|
Error |
The error response. |
|
Error |
The error response details. |
|
One |
The effect given to the item. Allowed values are |
|
One |
An individual table path entry that may carry row or column constraints. |
|
One |
A folder path entry that a principal has access to. |
|
One |
A single row-level constraint: a filter expression that applies to a specific table path. |
|
One |
Column-level constraints grouped by the table path they apply to. |
|
One |
A table path, which may scope to an individual table, a schema, or a root level. |
|
One |
A single column-level constraint entry returned in principal access metadata. |
ColumnAction
The array of actions applied to the columnNames. This determines which actions a user will be able to perform on columns. The allowed values are: Read. Additional columnAction types may be added over time.
| Value | Description |
|---|---|
| Read |
The ColumnAction value Read |
ColumnEffect
The effect given to the columnNames. The only allowed value is Permit. Additional columnEffect types may be added over time.
| Value | Description |
|---|---|
| Permit |
The ColumnEffect type Permit |
DataAccessRolePrincipalAccess
A paginated list of a principal's metadata records on an item, each with the level of access and any column-level and row-level constraints. The effective access state is exposed through the response ETag for change detection and concurrency control.
| Name | Type | Description |
|---|---|---|
| continuationToken |
string |
The token for the next result set batch. If there are no more records, it's removed from the response. |
| continuationUri |
string |
The URI of the next result set batch. If there are no more records, it's removed from the response. |
| value | OneLakePrincipalAccessBaseMetadata[]: |
The list of effective access entries. Each entry is a polymorphic object ( |
ErrorParameter
A structured parameter providing additional machine-readable context about an error.
| Name | Type | Description |
|---|---|---|
| message |
string |
A human-readable description of the parameter's meaning. |
| name |
string |
The parameter identifier. |
| value |
string |
The parameter value. |
ErrorRelatedResource
The error related resource details object.
| Name | Type | Description |
|---|---|---|
| resourceId |
string |
The resource ID that's involved in the error. |
| resourceType |
string |
The type of the resource that's involved in the error. |
ErrorResponse
The error response.
| Name | Type | Description |
|---|---|---|
| errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
| isRetriable |
boolean |
When true, the request can be retried. Use the |
| message |
string |
A human readable representation of the error. |
| moreDetails |
List of additional error details. |
|
| parameters |
Structured parameters providing additional machine-readable context about the error. |
|
| relatedResource |
The error related resource details. |
|
| requestId |
string (uuid) |
ID of the request associated with the error. |
ErrorResponseDetails
The error response details.
| Name | Type | Description |
|---|---|---|
| errorCode |
string |
A specific identifier that provides information about an error condition, allowing for standardized communication between our service and its users. |
| message |
string |
A human readable representation of the error. |
| parameters |
Structured parameters providing additional machine-readable context about the error. |
|
| relatedResource |
The error related resource details. |
OneLakePrincipalAccessEffect
The effect given to the item. Allowed values are Permit and Deny. Additional OneLake principal access effect types may be added over time.
| Value | Description |
|---|---|
| Permit |
The effect type is Permit. |
| Deny |
The effect type is Deny. |
OneLakePrincipalAccessExpandedTableMetadata
An individual table path entry that may carry row or column constraints.
| Name | Type | Description |
|---|---|---|
| access |
string[] |
The set of actions the principal is permitted to perform on this path (for example |
| columnConstraints |
The column constraints applied to this table for this principal. |
|
| effect |
The effect given to the item. Allowed values are |
|
| path |
string |
The relative path the principal has access to (for example |
| rowsConstraint |
string |
The row constraints applied to this table for this principal. |
| type |
string:
Expanded |
The kind of path entry. Additional kinds may be added over time. |
OneLakePrincipalAccessFolderMetadata
A folder path entry that a principal has access to.
| Name | Type | Description |
|---|---|---|
| access |
string[] |
The set of actions the principal is permitted to perform on this path (for example |
| effect |
The effect given to the item. Allowed values are |
|
| path |
string |
The relative path the principal has access to (for example |
| type |
string:
Folder |
The kind of path entry. Additional kinds may be added over time. |
OneLakePrincipalAccessRow
A single row-level constraint: a filter expression that applies to a specific table path.
| Name | Type | Description |
|---|---|---|
| rowsConstraint |
string |
Row-level constraint expression (e.g., a SQL predicate). |
| tablePath |
string |
Path of the table the row-level filter applies to. |
OneLakePrincipalAccessTableColumns
Column-level constraints grouped by the table path they apply to.
| Name | Type | Description |
|---|---|---|
| columnConstraints |
Per-column constraint entries for this table path. |
|
| tablePath |
string |
Path of the table the column constraints apply to. |
OneLakePrincipalAccessTableMetadata
A table path, which may scope to an individual table, a schema, or a root level.
| Name | Type | Description |
|---|---|---|
| access |
string[] |
The set of actions the principal is permitted to perform on this path (for example |
| columns |
The column constraints applied under this path for this principal, grouped by table path. |
|
| effect |
The effect given to the item. Allowed values are |
|
| path |
string |
The relative path the principal has access to (for example |
| rows |
The row constraints applied under this path for this principal, keyed by table path. |
|
| type |
string:
Table |
The kind of path entry. Additional kinds may be added over time. |
OneLakePrincipalRolesMetadataColumn
A single column-level constraint entry returned in principal access metadata.
| Name | Type | Description |
|---|---|---|
| columnAction |
The array of actions applied to the column. This determines which actions a principal will be able to perform on the column. The allowed values are: Read. Additional columnAction types may be added over time. |
|
| columnEffect |
The effect given to the column. The only allowed value is Permit. Additional columnEffect types may be added over time. |
|
| name |
string |
The case sensitive name of the column from the associated table. Use |