Skip to content

Commit afbbdfc

Browse files
Merge pull request #263287 from shikhagarg1/main
details about user root group in ACL
2 parents e656c3d + 2366f68 commit afbbdfc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

articles/energy-data-services/how-to-manage-acls.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,25 @@ ms.custom: template-how-to
1313

1414
In this article, you learn how to add or remove ACLs from the data record in your Azure Data Manager for Energy instance.
1515

16+
## Create a data group as ACL
17+
Run the following curl command in Azure Cloud Shell to create a new data group, e.g., data.sampledb.viewer, in the specific data partition of the Azure Data Manager for Energy instance.
18+
19+
**Request format**
20+
21+
```bash
22+
curl --location --request POST "https://<URI>/api/entitlements/v2/groups/" \
23+
--header 'data-partition-id: <data-partition>' \
24+
--header 'Authorization: Bearer <access_token>'
25+
--data-raw '{
26+
"description": "<data-group-description>",
27+
"name": "data.sampledb.viewer"
28+
}
29+
```
30+
31+
users.data.root entitlement group is the default member of all data groups when groups are created. If you try to remove users.data.root from any data group, you get error since this membership is enforced by OSDU.
32+
33+
In case, a data record has 2 ACLs, ACL_1 and ACL_2, and a given user is member of ACL_1 and users.data.root, now if you remove this given user from ACL_1, the user remains to have access of the data record via users.data.root group.
34+
1635
## Create a record with ACLs
1736
1837
**Request format**
@@ -179,6 +198,7 @@ If you delete the last owner ACL from the data record, you get the error.
179198
}
180199
```
181200

201+
182202
## Next steps
183203

184204
After you add ACLs to the data records, you can:

0 commit comments

Comments
 (0)