Skip to content

Commit 2fdceb8

Browse files
authored
Update how-to-manage-users.md
1 parent cddcba2 commit 2fdceb8

File tree

1 file changed

+14
-4
lines changed

1 file changed

+14
-4
lines changed

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

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ The Azure object ID (OID) is the Microsoft Entra user OID.
4848

4949
To know more about the OSDU bootstrap groups, check out [here](https://community.opengroup.org/osdu/platform/security-and-compliance/entitlements/-/blob/master/docs/bootstrap/bootstrap-groups-structure.md).
5050

51-
## Get the list of all available groups in a data partition
51+
## Get the list of all the groups you have access to in a data partition
5252

5353
Run the following curl command in Azure Cloud Shell to get all the groups that are available for you or that you have access to in the specific data partition of the Azure Data Manager for Energy instance.
5454

@@ -58,7 +58,7 @@ Run the following curl command in Azure Cloud Shell to get all the groups that a
5858
--header 'Authorization: Bearer <access_token>'
5959
```
6060

61-
## Add users to an OSDU group in a data partition
61+
## Add members to an OSDU group in a data partition
6262

6363
1. Run the following curl command in Azure Cloud Shell to add the users to the users group by using the entitlement service.
6464
1. The value to be sent for the parameter `email` is the OID of the user and not the user's email address.
@@ -162,10 +162,20 @@ Run the following curl command in Azure Cloud Shell to get all the groups that a
162162
}
163163
```
164164

165-
## Delete OSDU groups of a specific user in a data partition
165+
## Remove a member from a group in a data partition
166+
1. Run the following curl command in Azure Cloud Shell to remove a specific member from a group.
167+
1. If the API tries to remove a member from `users@` group but the member is already part of other groups, then the API request will fail. To remove member from `users@` group and thus from the data partition, you can use Delete command.
168+
169+
```bash
170+
curl --location --request DELETE 'https://<adme-url>/api/entitlements/v2/groups/<group-id>/members/<object-id>' \
171+
--header 'data-partition-id: <data-partition-id>' \
172+
--header 'Authorization: Bearer <access_token>'
173+
```
174+
175+
## Delete a specific user from all the groups in a data partition
166176

167177
1. Run the following curl command in Azure Cloud Shell to delete a specific user from a specific data partition.
168-
1. *Do not* delete the OWNER of a group unless you have another OWNER who can manage users in that group.
178+
1. *Do not* delete the OWNER of a group unless you have another OWNER who can manage users in that group. Though [users.data.root](concepts-entitlements.md#peculiarity-of-usersdataroot-group) is the default and permanent owner of all the data records.
169179

170180
```bash
171181
curl --location --request DELETE 'https://<adme-url>/api/entitlements/v2/members/<object-id>' \

0 commit comments

Comments
 (0)