Home / Data Platform

Data PlatformRunbookAdvanced

Sev1: a recursive ACL change on ADLS Gen2 locked pipelines out of the data lake with 403 errors

A set-recursive ACL run replaced POSIX ACLs across the lake. ADF, Databricks and Synapse fail with 403 AuthorizationPermissionMismatch. Grant temporary RBAC, rebuild ACLs with update-recursive, fix default ACLs.

Deepak Bhardwaj6 min read

Applies toAzure Data Lake Storage Gen2 (hierarchical namespace); Azure CLI 2.x; consumers such as Azure Data Factory, Azure Databricks, Synapse and Fabric shortcuts

Symptoms

  • Pipelines across several teams start failing at the same time with HTTP 403 and AuthorizationPermissionMismatch (or This request is not authorized to perform this operation using this permission).
  • Listing a folder works for some identities and fails for others. Folders created after the change behave differently from older ones.
  • Someone recently ran az storage fs access set-recursive, a PowerShell Set-AzDataLakeGen2AclRecursive, or a Storage Explorer "apply to children" on a high-level folder.

set-recursive replaces the whole ACL on every item under the path. Any entry that was not in the new ACL string is removed: other managed identities, groups and service principals. update-recursive only adds or modifies the entries you pass. Mixing the two up is the usual cause.

Caution

Do not run another set-recursive to "put it back" from memory. If you miss an entry, you lock out another identity. Rebuild from a known-good source (step 2) and use update-recursive.

1. Confirm scope and impact

Look at the ACL on the root of the container, on a failing folder and on a working folder:

az storage fs access show --account-name <acct> -f <container> -p / --auth-mode login
az storage fs access show --account-name <acct> -f <container> -p raw/sales --auth-mode login

The acl field shows entries such as user::rwx,group::r-x,other::---,user:<object-id>:r-x,default:user:<object-id>:r-x. Check for missing named entries (user:<oid> or group:<oid>) for your pipeline identities.

Find who made the change and on which path. With diagnostic settings sending storage logs to Log Analytics:

StorageBlobLogs
| where TimeGenerated > ago(24h)
| where AccountName == "<acct>"
| where OperationName has "AccessControl"
| summarize Calls = count(), First = min(TimeGenerated), Last = max(TimeGenerated)
    by OperationName, RequesterObjectId, CallerIpAddress
| order by First asc

Operation names differ between log versions. If the filter returns nothing, look at all operation names in the incident window. The earliest Uri shows the top-level path the run started from.

Then list the identities that need access: ADF managed identity, Databricks access connector or service principal, Synapse workspace identity, and the AD groups for analysts. Get object IDs with:

az ad sp list --display-name <name> --query "[].{name:displayName, id:id}" -o table
az ad group show --group "<group name>" --query id -o tsv

2. Stop the bleeding with temporary RBAC

Azure RBAC data roles are evaluated before ACLs. Granting Storage Blob Data Contributor (or Reader) to a pipeline identity brings it back immediately, whatever the ACLs say:

SCOPE=$(az storage account show -n <acct> -g <rg> --query id -o tsv)/blobServices/default/containers/<container>

az role assignment create --assignee-object-id <adf-mi-object-id> \
  --assignee-principal-type ServicePrincipal \
  --role "Storage Blob Data Contributor" --scope "$SCOPE"

Scope it to the container, not the account. Role assignments can take several minutes to apply. Retry the pipeline after about five minutes.

Warning

Container-level RBAC removes the folder-level isolation the ACLs gave you. Record each temporary assignment in the incident ticket and remove it in step 5. Do not grant analyst groups write access this way.

3. Rebuild the ACLs

Pick a source for the correct ACLs, in this order:

Source Notes
IaC or ACL scripts in Git Best. Re-run them in update mode.
A storage account that was not touched (DR, test) with the same layout Read with fs access show and copy
A folder the run did not reach Run fs access show on a sibling path outside the changed tree
Pipeline configs and team knowledge Last resort. Build the list per folder.

Apply entries with update-recursive. It adds or modifies the entries you pass and leaves the others alone:

az storage fs access update-recursive --account-name <acct> -f <container> -p raw/sales \
  --acl "user:<adf-mi-oid>:rwx,default:user:<adf-mi-oid>:rwx,group:<analysts-oid>:r-x,default:group:<analysts-oid>:r-x" \
  --auth-mode login --continue-on-failure true
  • default: entries matter. Without them, new files and folders created by pipelines do not inherit access, and tomorrow's run fails.
  • Identities also need execute (--x) on every parent folder up to the root to traverse to their path. Do not use update-recursive on / for this, because it changes everything below it. Set the parent folders one at a time with az storage fs access set, which changes only the path you give. It takes the full ACL, so read the current one first and add the entry:
CUR=$(az storage fs access show --account-name <acct> -f <container> -p raw \
  --auth-mode login --query acl -o tsv)
az storage fs access set --account-name <acct> -f <container> -p raw \
  --acl "$CUR,user:<adf-mi-oid>:--x" --auth-mode login

Repeat for / and every folder between the root and the data path.

Large trees take a long time and can hit transient failures. The command returns a continuation token and failure counts. Re-run with --continuation <token> and check failedEntries in the output.

Check the mask as well. If the mask:: entry was set to r-x or ---, named entries cannot exceed it, even when they show rwx.

4. Verify recovery

az storage fs access show --account-name <acct> -f <container> -p raw/sales/2026/11 --auth-mode login

Then test as the real identity:

  • Re-run one ADF pipeline that reads and writes, so it creates a new folder. Check the new folder's ACL inherited the default: entries.
  • In Databricks, dbutils.fs.ls("abfss://<container>@<acct>.dfs.core.windows.net/raw/sales") as the job's identity.
  • Ask one analyst to query through Synapse serverless or Fabric.

5. Remove the temporary RBAC

When ACL-only access works, remove each emergency assignment and run the tests again:

az role assignment delete --assignee <adf-mi-object-id> \
  --role "Storage Blob Data Contributor" --scope "$SCOPE"

Communicate

List the failed pipeline runs from the incident window so owners can rerun them. Tell the security team which RBAC assignments were added and when they were removed.

Prevent it next time

  • Keep ACLs in code (Terraform azurerm_storage_data_lake_gen2_path or a script) and apply them only with update-recursive. Ban ad hoc set-recursive above team-level folders.
  • Prefer ACL entries for groups over individual identities. Fewer entries means less to lose.
  • Export ACLs on a schedule (fs access show on key paths) to a file you can restore from.
  • Alert on SetAccessControl-type operations at the container root and top-level folders.
  • For 403s that are not ACL-related (firewall, private endpoints, SAS), see Azure Storage 403 authorization.