Skip to content

onelake-security

Manage OneLake data access roles (row/column-level security)

Authentication scope: fabric

List data access roles for an item

Terminal window
fabio onelake-security list --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Item ID (e.g., lakehouse ID)

Read-only · Returns list

Show details of a data access role

Terminal window
fabio onelake-security show --workspace <value> --id <value> --role-name <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Item ID
--role-name string Yes Data access role name

Read-only · Returns object

Create or update a single data access role

Terminal window
fabio onelake-security create --workspace <value> --id <value> --role <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Item ID
--role string Yes Role definition as JSON or path to JSON file (prefix with @)
--conflict-policy string No Conflict policy when role already exists (Abort or Overwrite)

Mutates state · Returns object

Replace all data access roles for an item (atomic PUT)

Terminal window
fabio onelake-security upsert --workspace <value> --id <value> --roles <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Item ID
--roles string Yes Roles definition as JSON (array of role objects) or path to a JSON file (prefix with @)

Examples

Terminal window
fabio onelake-security upsert --workspace $WS --id $LH --content '[{"name":"AnalystRole","members":[{"principalId":"...","principalType":"User"}],"decisionRules":[{"effect":"Permit","paths":["Tables/sales"]}]}]'

Mutates state · Returns object

Delete a data access role

Terminal window
fabio onelake-security delete --workspace <value> --id <value> --role-name <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Item ID
--role-name string Yes Data access role name to delete

Mutates state · Destructive · Returns void

Get a principal’s effective OneLake access, including row and column constraints

Terminal window
fabio onelake-security get-principal-access --workspace <value> --id <value>
Flag Type Required Description
--workspace string Yes Workspace ID
--id string Yes Fabric item ID to evaluate
--principal-id string No Principal object ID; defaults to the caller
--root-path enum No Restrict results to the Tables or Files root One of: Tables, Files.
--expand-tables bool No Expand table grants into individual table entries; requires –root-path Tables
--page-size integer No Server page size (1-1000; defaults to 500)
--if-match string No Require the computed access state to match this quoted ETag
--if-none-match string No Require the computed access state not to match this quoted ETag

Examples

Terminal window
fabio onelake-security get-principal-access --workspace $WS --id $ITEM_ID --principal-id $PRINCIPAL_ID --root-path Tables --expand-tables

Read-only · Returns list