Access Control List (ACL) Commands¶
The access control list (acl) commands let you manage permissions and security settings for workspaces, items, and OneLake resources.
Supported Types:
.Workspace(workspace-level ACLs).Connection.Gateway- All workspace item types (item-level ACLs)
- OneLake storage sections (RBAC)
Available Commands¶
| Command | Description | Usage |
|---|---|---|
acl ls (dir) |
List ACLs | acl ls <path> [-l] |
acl get |
Get ACL details | acl get <path> [-q <query>] [-o <output_path>] |
acl set |
Set access controls | acl set <path> -I <identity> -R <role> [-f] |
acl rm (del) |
Remove an ACL | acl rm <path> -I <identity> [-f] |
ls (dir)¶
List access control entries for a workspace, item, gateway, connection or OneLake resource.
Listing ACLs for an item requires tenant-level Fabric Administrator
Usage:
Parameters:
<path>: Path to the resource.-l, --long: Show detailed output. Optional.-q, --query: JMESPath query to filter results. Optional.
Examples:
# List workspace acls
fab acl ls ws1.workspace
# List workspace admins acls
fab acl ls ws1.workspace -q [].[?role=='Admin']
# List lakehouse item acls
fab acl ls ws1.workspace/lh1.lakehouse
fab acl ls ws1.workspace/lh1.lakehouse/Files/data
get¶
Get detailed ACL information with optional filtering for workspace, item, gateway, connection or OneLake resource.
Retrieving ACLs for an item requires tenant-level Fabric Administrator
Usage:
Parameters:
<path>: Path to the resource.-q, --query: JMESPath query to filter results. Optional.-o, --output: Output path for results. Optional.
Examples:
# Get workspace acl
fab acl get ws1.Workspace
# Get item acl
fab acl get ws1.Workspace/lh1.Lakehouse
set¶
Set access control permissions for a workspace, gateway or connection.
Usage:
Parameters:
<path>: Path to the resource.-I, --identity: Object ID of the Microsoft Entra identity to set or update.-R, --role: ACL role (admin, member, contributor, viewer).-f, --force: Skip confirmation prompt. Optional.
Examples:
rm (del)¶
Remove access permissions for an identity from a workspace, gateway or connection.
Usage:
Parameters:
<path>: Path to the resource.-I, --identity: Object ID of the Microsoft Entra identity to remove.-f, --force: Skip confirmation prompt. Optional.
Examples:
For more examples and detailed scenarios, see ACLs Examples.