Skip to content

Commit 46b06c5

Browse files
committed
Freshness pass to look at description of code.
1 parent 2bfc4f5 commit 46b06c5

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

articles/storage/blobs/data-lake-storage-acl-python.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ACL inheritance is already available for new child items that are created under
3232

3333
- One of the following security permissions:
3434

35-
- A provisioned Azure Active Directory (AD) [security principal](../../role-based-access-control/overview.md#security-principal) that has been assigned the [Storage Blob Data Owner](../../role-based-access-control/built-in-roles.md#storage-blob-data-owner) role, scoped to the target container, storage account, parent resource group, or subscription..
35+
- A provisioned Azure Active Directory (AD) [security principal](../../role-based-access-control/overview.md#security-principal) that has been assigned the [Storage Blob Data Owner](../../role-based-access-control/built-in-roles.md#storage-blob-data-owner) role, scoped to the target container, storage account, parent resource group, or subscription.
3636

3737
- Owning user of the target container or directory to which you plan to apply ACL settings. To set ACLs recursively, this includes all child items in the target container or directory.
3838

@@ -53,6 +53,7 @@ import os, uuid, sys
5353
from azure.storage.filedatalake import DataLakeServiceClient
5454
from azure.core._match_conditions import MatchConditions
5555
from azure.storage.filedatalake._models import ContentSettings
56+
from azure.identity import DefaultAzureCredential
5657
```
5758

5859
## Connect to the account
@@ -124,9 +125,7 @@ If you want to set a **default** ACL entry, then add the string `default:` to th
124125

125126
This example sets the ACL of a directory named `my-parent-directory`.
126127

127-
This method accepts a boolean parameter named `is_default_scope` that specifies whether to set the default ACL. if that parameter is `True`, the list of ACL entries are preceded with the string `default:`.
128-
129-
The entries of the ACL give the owning user read, write, and execute permissions, gives the owning group only read and execute permissions, and gives all others no access. The last ACL entry in this example gives a specific user with the object ID `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` read and execute permissions. These entries give the owning user read, write, and execute permissions, gives the owning group only read and execute permissions, and gives all others no access. The last ACL entry in this example gives a specific user with the object ID `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` read and execute permissions.
128+
This method accepts a boolean parameter named `is_default_scope` that specifies whether to set the default ACL. If that parameter is `True`, the list of ACL entries are preceded with the string `default:`. These entries give the owning user read, write, and execute permissions, gives the owning group only read and execute permissions, and gives all others no access. The last ACL entry in this example gives a specific user with the object ID `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx` read and execute permissions.
130129

131130
:::code language="python" source="~/azure-storage-snippets/blobs/howto/python/python-v12/ACL_datalake.py" id="Snippet_SetACLRecursively":::
132131

0 commit comments

Comments
 (0)