Edit

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
itemId
path True

string (uuid)

The ID of the Fabric item to evaluate access on.

workspaceId
path True

string (uuid)

The workspace ID.

continuationToken
query

string

A token for retrieving the next page of results.

expandTables
query

boolean

When true, resolves high-level table grants into individual expanded table entries. Only valid when rootPath scopes to tables.

pageSize
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.

principalId
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

rootPath
query

string

Scopes results to entries under a known customer-facing root path (Right now, only Tables or Files are accepted). When omitted, results cover the entire item. Wildcards aren't supported, and unrecognized paths are rejected.

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

DataAccessRolePrincipalAccess

Request completed successfully.


Headers:

ETag string - The entity tag representing the computed access state, used for change detection and concurrency control.

429 Too Many Requests

ErrorResponse

The service rate limit was exceeded. The server returns a Retry-After header indicating, in seconds, how long the client must wait before sending additional requests.

Headers

Retry-After: integer

Other Status Codes

ErrorResponse

Common error codes:

  • ItemNotFound - The server can't find the requested item.

  • FolderPathNotFound - The specified root path was not found.

  • InputPathInvalid - The specified root path was malformed or contained a wildcard.

  • PreconditionFailed - The current resource ETag doesn't match the value specified in the If-Match header.

  • InsufficientPermissions - The caller doesn't have sufficient permissions to query the requested principal's access.

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
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.

ColumnEffect

The effect given to the columnNames. The only allowed value is Permit. Additional columnEffect types may be added over time.

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.

ErrorParameter

A structured parameter providing additional machine-readable context about an error.

ErrorRelatedResource

The error related resource details object.

ErrorResponse

The error response.

ErrorResponseDetails

The error response 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.

OneLakePrincipalAccessExpandedTableMetadata

An individual table path entry that may carry row or column constraints.

OneLakePrincipalAccessFolderMetadata

A folder path entry that a principal has access to.

OneLakePrincipalAccessRow

A single row-level constraint: a filter expression that applies to a specific table path.

OneLakePrincipalAccessTableColumns

Column-level constraints grouped by the table path they apply to.

OneLakePrincipalAccessTableMetadata

A table path, which may scope to an individual table, a schema, or a root level.

OneLakePrincipalRolesMetadataColumn

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 (Folder or Table or ExpandedTable) keyed by the type discriminator.

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 Retry-After response header to determine the delay, if available.

message

string

A human readable representation of the error.

moreDetails

ErrorResponseDetails[]

List of additional error details.

parameters

ErrorParameter[]

Structured parameters providing additional machine-readable context about the error.

relatedResource

ErrorRelatedResource

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

ErrorParameter[]

Structured parameters providing additional machine-readable context about the error.

relatedResource

ErrorRelatedResource

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 Read).

columnConstraints

OneLakePrincipalRolesMetadataColumn[]

The column constraints applied to this table for this principal.

effect

OneLakePrincipalAccessEffect

The effect given to the item. Allowed values are Permit and Deny. Additional OneLake principal access effect types may be added over time.

path

string

The relative path the principal has access to (for example /Files/MyFolder or /Tables/MyTable).

rowsConstraint

string

The row constraints applied to this table for this principal.

type string:

ExpandedTable

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 Read).

effect

OneLakePrincipalAccessEffect

The effect given to the item. Allowed values are Permit and Deny. Additional OneLake principal access effect types may be added over time.

path

string

The relative path the principal has access to (for example /Files/MyFolder or /Tables/MyTable).

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

OneLakePrincipalRolesMetadataColumn[]

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 Read).

columns

OneLakePrincipalAccessTableColumns[]

The column constraints applied under this path for this principal, grouped by table path.

effect

OneLakePrincipalAccessEffect

The effect given to the item. Allowed values are Permit and Deny. Additional OneLake principal access effect types may be added over time.

path

string

The relative path the principal has access to (for example /Files/MyFolder or /Tables/MyTable).

rows

OneLakePrincipalAccessRow[]

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

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

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 * to indicate all columns in the table.