Skip to content

Commit 71b8e90

Browse files
authored
Merge pull request #272430 from shikhagarg1/main
Differentiating bw remove vs delete members as per new changes in OSDU
2 parents 6bd5044 + b6114cc commit 71b8e90

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

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

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ In this article, you learn how to manage users and their memberships in OSDU gro
2525
The Azure object ID (OID) is the Microsoft Entra user OID.
2626

2727
1. Find the OID of the users first. If you're managing an application's access, you must find and use the application ID (or client ID) instead of the OID.
28-
1. Input the OID of the users (or the application or client ID if managing access for an application) as parameters in the calls to the Entitlements API of your Azure Data Manager for Energy instance. You can not use user's email id in the parameter and must use object ID.
28+
1. Input the OID of the users (or the application or client ID if managing access for an application) as parameters in the calls to the Entitlements API of your Azure Data Manager for Energy instance. You can not use user's email ID in the parameter and must use object ID.
2929

3030
:::image type="content" source="media/how-to-manage-users/azure-active-directory-object-id.png" alt-text="Screenshot that shows finding the object ID from Microsoft Entra ID.":::
3131

@@ -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>' \
-283 Bytes
Loading
2.25 KB
Loading
-1.69 KB
Loading

0 commit comments

Comments
 (0)