Skip to content

Commit 13d9003

Browse files
authored
Update how-to-manage-users.md
1 parent 605c5e8 commit 13d9003

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ In this article, you learn how to manage users and their memberships in OSDU gro
2020
- Generate the service principal access token that's needed to call the Entitlement APIs. See [How to generate auth token](how-to-generate-auth-token.md).
2121
- Keep all the parameter values handy. They're needed to run different user management requests via the Entitlements API.
2222

23-
## Fetch OID
23+
## Fetch `object-id`
2424

2525
The Azure object ID (OID) is the Microsoft Entra user OID.
2626

@@ -64,7 +64,7 @@ Run the following curl command in Azure Cloud Shell to get all the groups that a
6464
1. The value to be sent for the parameter `email` is the OID of the user and not the user's email address.
6565

6666
```bash
67-
curl --location --request POST 'https://<adme-url>/api/entitlements/v2/groups/<group-name>@<data-partition-id>.dataservices.energy/members' \
67+
curl --location --request POST 'https://<adme-url>/api/entitlements/v2/groups/<group-name>@<data-partition-id>.<domain>/members' \
6868
--header 'data-partition-id: <data-partition-id>' \
6969
--header 'Authorization: Bearer <access_token>' \
7070
--header 'Content-Type: application/json' \
@@ -121,7 +121,7 @@ Run the following curl command in Azure Cloud Shell to get all the groups that a
121121
1. Run the following curl command in Azure Cloud Shell to get all the groups associated with the user.
122122

123123
```bash
124-
curl --location --request GET 'https://<adme-url>/api/entitlements/v2/members/<OBJECT_ID>/groups?type=none' \
124+
curl --location --request GET 'https://<adme-url>/api/entitlements/v2/members/<obejct-id>/groups?type=none' \
125125
--header 'data-partition-id: <data-partition-id>' \
126126
--header 'Authorization: Bearer <access_token>'
127127
```
@@ -163,7 +163,7 @@ Run the following curl command in Azure Cloud Shell to get all the groups that a
163163
1. *Do not* delete the OWNER of a group unless you have another OWNER who can manage users in that group.
164164

165165
```bash
166-
curl --location --request DELETE 'https://<adme-url>/api/entitlements/v2/members/<OBJECT_ID>' \
166+
curl --location --request DELETE 'https://<adme-url>/api/entitlements/v2/members/<object-id>' \
167167
--header 'data-partition-id: <data-partition-id>' \
168168
--header 'Authorization: Bearer <access_token>'
169169
```

0 commit comments

Comments
 (0)