You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/energy-data-services/how-to-convert-segy-to-ovds.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,7 +92,7 @@ If the user isn't part of the required group, you can add the required entitleme
92
92
93
93
[](media/how-to-convert-segy-to-vds/postman-api-add-user-to-admins.png#lightbox)
94
94
95
-
If you haven't yet created entitlements groups, follow the directions as outlined in [How to manage users](how-to-manage-users.md). If you would like to see what groups you have, use [Get entitlements groups for a given user](how-to-manage-users.md#get-entitlements-groups-for-a-given-user-in-a-data-partition). Data access isolation is achieved with this dedicated ACL (access control list) per object within a given data partition.
95
+
If you haven't yet created entitlements groups, follow the directions as outlined in [How to manage users](how-to-manage-users.md). If you would like to see what groups you have, use [Get entitlements groups for a given user](how-to-manage-users.md#get-osdu-groups-for-a-given-user-in-a-data-partition). Data access isolation is achieved with this dedicated ACL (access control list) per object within a given data partition.
Copy file name to clipboardExpand all lines: articles/energy-data-services/how-to-convert-segy-to-zgy.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -126,7 +126,7 @@ If the user isn't part of the required group, you can add the required entitleme
126
126
127
127
[](media/how-to-convert-segy-to-zgy/postman-api-add-user-to-admins.png#lightbox)
128
128
129
-
If you haven't yet created entitlements groups, follow the directions as outlined in [How to manage users](how-to-manage-users.md). If you would like to see what groups you have, use [Get entitlements groups for a given user](how-to-manage-users.md#get-entitlements-groups-for-a-given-user-in-a-data-partition). Data access isolation is achieved with this dedicated ACL (access control list) per object within a given data partition.
129
+
If you haven't yet created entitlements groups, follow the directions as outlined in [How to manage users](how-to-manage-users.md). If you would like to see what groups you have, use [Get entitlements groups for a given user](how-to-manage-users.md#get-osdu-groups-for-a-given-user-in-a-data-partition). Data access isolation is achieved with this dedicated ACL (access control list) per object within a given data partition.
Copy file name to clipboardExpand all lines: articles/energy-data-services/how-to-manage-users.md
+24-58Lines changed: 24 additions & 58 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ In this article, you learn how to manage users and their memberships in OSDU gro
25
25
2. Locate `tenant-id` under the basic information section in the *Overview* tab.
26
26
3. Copy the `tenant-id` and paste it into an editor to be used later.
27
27
28
-
:::image type="content" source="media/how-to-manage-users/azure-active-directory.png" alt-text="Screenshot of search for Microsoft Entra I D.":::
28
+
:::image type="content" source="media/how-to-manage-users/azure-active-directory.png" alt-text="Screenshot of search for Microsoft Entra ID.":::
29
29
30
30
:::image type="content" source="media/how-to-manage-users/tenant-id.png" alt-text="Screenshot of finding the tenant-id.":::
31
31
@@ -73,7 +73,7 @@ A `client-secret` is a string value your app can use in place of a certificate t
73
73
:::image type="content" source="media/how-to-manage-users/data-partition-id-second-option.png" alt-text="Screenshot of finding the data-partition-id from the Azure Data Manager for Energy instance overview page.":::
74
74
75
75
:::image type="content" source="media/how-to-manage-users/data-partition-id-second-option-step-2.png" alt-text="Screenshot of finding the data-partition-id from the Azure Data Manager for Energy instance overview page with the data partitions.":::
76
-
## Generate access token
76
+
## Generate service principal access token
77
77
78
78
1. Run the below curl command in Azure Cloud Bash after replacing the placeholder values with the corresponding values found earlier in the above steps.
79
79
@@ -107,23 +107,18 @@ curl --location --request POST 'https://login.microsoftonline.com/<tenant-id>/oa
107
107
1. Find the 'object-id' (OID) of the user(s) first. If you are managing an application's access, you must find and use the application ID (or client ID) instead of the OID.
108
108
2. Input the `object-id` (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.
109
109
110
-
:::image type="content" source="media/how-to-manage-users/azure-active-directory-object-id.png" alt-text="Screenshot of finding the object-id from Microsoft Entra I D.":::
110
+
:::image type="content" source="media/how-to-manage-users/azure-active-directory-object-id.png" alt-text="Screenshot of finding the object-id from Microsoft Entra ID.":::
111
111
112
112
:::image type="content" source="media/how-to-manage-users/profile-object-id.png" alt-text="Screenshot of finding the object-id from the profile.":::
113
113
114
114
## First time addition of users in a new data partition
115
-
In order to add entitlements to a new data partition of Azure Data Manager for Energy instance, use the SPN token of the app that was used to provision the instance. If you try to directly use user tokens for adding entitlements, it results in 401 error. The SPN token must be used to add initial users in the system and those users (with admin access) can then manage additional users.
116
-
117
-
The SPN is generated using client_credentials flow
118
-
```bash
119
-
curl --location --request POST 'https://login.microsoftonline.com/<tenant-id>/oauth2/token' \
1. In order to add entitlements to a new data partition of Azure Data Manager for Energy instance, use the access token of the app that was used to provision the instance.
116
+
2. Get the service principal access token using [Generate service principal access token](how-to-manage-users.md#generate-service-principal-access-token).
117
+
3. If you try to directly use user tokens for adding entitlements, it results in 401 error. The service principal access token must be used to add initial users in the system and those users (with admin access) can then manage more users.
118
+
4. Use the service principal access token to do these three steps using the commands outlined in the following sections.
119
+
5. Add the users to the `users@<data-partition-id>.<domain>` OSDU group.
120
+
6. Get the OSDU group such as `service.legal.editor@<data-partition-id>.<domain>` you want to add the user to.
121
+
7. Add the users to that group.
127
122
128
123
## Get the list of all available groups in a data partition
129
124
@@ -135,13 +130,13 @@ Run the below curl command in Azure Cloud Bash to get all the groups that are av
135
130
--header 'Authorization: Bearer <access_token>'
136
131
```
137
132
138
-
## Add user(s) to an OSDU group in a data partition
133
+
## Add users to an OSDU group in a data partition
139
134
140
135
1. Run the below curl command in Azure Cloud Bash to add the user(s) to the "Users" group using the Entitlement service.
141
136
2. The value to be sent for the param **"email"** is the **Object_ID (OID)** of the user and not the user's email.
142
137
143
138
```bash
144
-
curl --location --request POST 'https://<URI>/api/entitlements/v2/groups/users@<data-partition-id>.dataservices.energy/members' \
139
+
curl --location --request POST 'https://<URI>/api/entitlements/v2/groups/<group-name>@<data-partition-id>.dataservices.energy/members' \
0 commit comments