OneLake Data Access Security - List Data Access Roles
Note
This API is in preview.
Returns a list of OneLake roles.
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 | No |
Managed identities | No |
Interface
GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{itemId}/dataAccessRoles
GET https://api.fabric.microsoft.com/v1/workspaces/{workspaceId}/items/{itemId}/dataAccessRoles?continuationToken={continuationToken}
URI Parameters
Name | In | Required | Type | Description |
---|---|---|---|---|
item
|
path | True |
string uuid |
The ID of the Fabric item to put the roles. |
workspace
|
path | True |
string uuid |
The workspace ID. |
continuation
|
query |
string |
A token for retrieving the next page of results. |
Responses
Name | Type | Description |
---|---|---|
200 OK |
Request completed successfully. Headers Etag: string |
|
Other Status Codes |
Common error codes:
|
Examples
List data access roles multiple pages example |
List data access roles single page example |
List default data access roles example |
List data access roles multiple pages example
Sample request
GET https://api.fabric.microsoft.com/v1/workspaces/cfafbeb1-8037-4d0c-896e-a46fb27ff222/items/25bac802-080d-4f73-8a42-1b406eb1fceb/dataAccessRoles
Sample response
ETag: 33a64df551425fcc55e4d42a148795d9f25f89d4
{
"value": [
{
"name": "default_role_1",
"decisionRules": [
{
"effect": "Permit",
"permission": [
{
"attributeName": "Path",
"attributeValueIncludedIn": [
"*"
]
},
{
"attributeName": "Action",
"attributeValueIncludedIn": [
"Read"
]
}
]
}
],
"members": {
"fabricItemMembers": [
{
"itemAccess": [
"ReadAll"
],
"sourcePath": "cfafbeb1-8037-4d0c-896e-a46fb27ff222/25bac802-080d-4f73-8a42-1b406eb1fceb"
}
]
}
}
],
"continuationToken": "LDEsMTAwMDAwLDA%3D",
"continuationUri": "https://api.fabric.microsoft.com/v1/workspaces/cfafbeb1-8037-4d0c-896e-a46fb27ff222/items/25bac802-080d-4f73-8a42-1b406eb1fceb/dataAccessRoles?continuationToken=LDEsMTAwMDAwLDA%3D"
}
List data access roles single page example
Sample request
GET https://api.fabric.microsoft.com/v1/workspaces/cfafbeb1-8037-4d0c-896e-a46fb27ff222/items/25bac802-080d-4f73-8a42-1b406eb1fceb/dataAccessRoles
Sample response
ETag: 33a64df551425fcc55e4d42a148795d9f25f89d4
{
"value": [
{
"name": "default_role_1",
"decisionRules": [
{
"effect": "Permit",
"permission": [
{
"attributeName": "Path",
"attributeValueIncludedIn": [
"*"
]
},
{
"attributeName": "Action",
"attributeValueIncludedIn": [
"Read"
]
}
]
}
],
"members": {
"fabricItemMembers": [
{
"itemAccess": [
"ReadAll"
],
"sourcePath": "cfafbeb1-8037-4d0c-896e-a46fb27ff222/25bac802-080d-4f73-8a42-1b406eb1fceb"
}
]
}
}
]
}
List default data access roles example
Sample request
GET https://api.fabric.microsoft.com/v1/workspaces/cfafbeb1-8037-4d0c-896e-a46fb27ff222/items/25bac802-080d-4f73-8a42-1b406eb1fceb/dataAccessRoles
Sample response
ETag: 33a64df551425fcc55e4d42a148795d9f25f89d4
{
"value": [
{
"name": "DefaultReader",
"decisionRules": [
{
"effect": "Permit",
"permission": [
{
"attributeName": "Path",
"attributeValueIncludedIn": [
"*"
]
},
{
"attributeName": "Action",
"attributeValueIncludedIn": [
"Read"
]
}
]
}
],
"members": {
"fabricItemMembers": [
{
"itemAccess": [
"ReadAll"
],
"sourcePath": "cfafbeb1-8037-4d0c-896e-a46fb27ff222/25bac802-080d-4f73-8a42-1b406eb1fceb"
}
]
}
}
]
}
Definitions
Name | Description |
---|---|
Attribute |
Specifies the name of the attribute that is being evaluated for access permissions. AttributeName can be |
Data |
A Data access role represents a set of permissions and permission scopes that define what actions its members are allowed to perform for the data in scope. Data access roles are used to manage data access security and ensure that only authorized users can view, edit, or delete certain data. Members are users or groups who have been granted the role, and they can read the data based on the permissions assigned to the role. For example, a member can be an Microsoft Entra ID group and permission scope can be a Read Action applied on the given Path to File, Folder(s) or Table(s) in OneLake. |
Data |
|
Decision |
Specifies a rule for matching the requested action. Contains effect (Permit) and Permission which determine whether a user or entity is authorized to perform a specific action (e.g., read) on a resource. Permission is a set of scopes, defined by attributes, that must match the requested action for the rule to apply. |
Effect |
The effect that a role has on access to the data resource. Currently, the only supported effect type is |
Error |
The error related resource details object. |
Error |
The error response. |
Error |
The error response details. |
Fabric |
Fabric item member. |
Item |
A list specifying the access permissions for Fabric user to have to be automatically included in the role members. Additional itemAccess types may be added over time. |
Members |
The members object which contains the members of the role as arrays of different member types. |
Microsoft |
Microsoft Entra ID member assigned to the role. |
Object |
The type of Microsoft Entra ID object. Additional objectType types may be added over time. |
Permission |
Defines a set of attributes (properties) that determine the scope and level of access to a resource. When |
AttributeName
Specifies the name of the attribute that is being evaluated for access permissions. AttributeName can be Path
or Action
. Additional attributeName types may be added over time.
Name | Type | Description |
---|---|---|
Action |
string |
Attribute name Action |
Path |
string |
Attribute name Path |
DataAccessRole
A Data access role represents a set of permissions and permission scopes that define what actions its members are allowed to perform for the data in scope. Data access roles are used to manage data access security and ensure that only authorized users can view, edit, or delete certain data. Members are users or groups who have been granted the role, and they can read the data based on the permissions assigned to the role. For example, a member can be an Microsoft Entra ID group and permission scope can be a Read Action applied on the given Path to File, Folder(s) or Table(s) in OneLake.
Name | Type | Description |
---|---|---|
decisionRules |
The array of permissions that make up the Data access role. |
|
id |
string |
The unique id for the Data access role. |
members |
The members object which contains the members of the role as arrays of different member types. |
|
name |
string |
The name of the Data access role. |
DataAccessRoles
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 |
A list of roles that are used to manage data access security and ensure that only authorized users can view certain data. A role represents a set of permissions and permission scopes that define what actions its members are allowed to perform for the data in scope. Members are users or groups who have been granted the role, and they can read the data based on the permissions assigned to the role. For example, a member can be a Microsoft Entra ID group and permission scope can be a Read Action applied on the given Path to File, Folder(s) or Table(s) in OneLake. |
DecisionRule
Specifies a rule for matching the requested action. Contains effect (Permit) and Permission which determine whether a user or entity is authorized to perform a specific action (e.g., read) on a resource. Permission is a set of scopes, defined by attributes, that must match the requested action for the rule to apply.
Name | Type | Description |
---|---|---|
effect |
The effect that a role has on access to the data resource. Currently, the only supported effect type is |
|
permission |
The |
Effect
The effect that a role has on access to the data resource. Currently, the only supported effect type is Permit
, which grants access to the resource. Additional effect types may be added over time.
Name | Type | Description |
---|---|---|
Permit |
string |
the effect type Permit |
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. |
message |
string |
A human readable representation of the error. |
moreDetails |
List of additional error details. |
|
relatedResource |
The error related resource details. |
|
requestId |
string |
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. |
relatedResource |
The error related resource details. |
FabricItemMember
Fabric item member.
Name | Type | Description |
---|---|---|
itemAccess |
A list specifying the access permissions for Fabric user to have to be automatically included in the role members. Additional itemAccess types may be added over time. |
|
sourcePath |
string |
The path to Fabric item having the specified item access. |
ItemAccess
A list specifying the access permissions for Fabric user to have to be automatically included in the role members. Additional itemAccess types may be added over time.
Name | Type | Description |
---|---|---|
Execute |
string |
Item Access Execute. |
Explore |
string |
Item Access Explore. |
Read |
string |
Item Access Read. |
ReadAll |
string |
Item Access ReadAll. |
Reshare |
string |
Item Access Reshare. |
Write |
string |
Item Access Write. |
Members
The members object which contains the members of the role as arrays of different member types.
Name | Type | Description |
---|---|---|
fabricItemMembers |
A list of members who have a certain permission set in Microsoft Fabric. All members with that permission set are added as members of this Data Access Role. |
|
microsoftEntraMembers |
The list of Microsoft Entra ID members. |
MicrosoftEntraMember
Microsoft Entra ID member assigned to the role.
Name | Type | Description |
---|---|---|
objectId |
string |
The object id. |
objectType |
The type of Microsoft Entra ID object. Additional objectType types may be added over time. |
|
tenantId |
string |
The tenant id. |
ObjectType
The type of Microsoft Entra ID object. Additional objectType types may be added over time.
Name | Type | Description |
---|---|---|
Group |
string |
Attribute name Group |
ManagedIdentity |
string |
Attribute name ManagedIdentity |
ServicePrincipal |
string |
Attribute name ServicePrincipal |
User |
string |
Attribute name User |
PermissionScope
Defines a set of attributes (properties) that determine the scope and level of access to a resource. When attributeName
property is set to Path
, the attributeValueIncludedIn
property must specify the location of the resource being accessed, such as "Tables/Table1". When the attributeName
property is set to Action
, the attributeValueIncludedIn
property must specify the type of access being granted, such as Read
.
Name | Type | Description |
---|---|---|
attributeName |
Specifies the name of the attribute that is being evaluated for access permissions. AttributeName can be |
|
attributeValueIncludedIn |
string[] |
Specifies a list of values for the |