I would like to add a Usergroup to a Role in Adobe Experience Platform though API. I am following the documentation from the link below. The document does't provide clear information on what fields to provide to add a subject to the role.
For example, what info goes into the "value" field below in order to add a subject?
Is this information documented elsewhere?
{ "operations": [ { "op": "add", "path": "/subjects", "value": "New subjects" } ] }
Solved! Go to Solution.
Thanks Nitesh for your response. Looks like both payload and URL mentioned in the document is incorrect.
For other's benefit, here is the correct URL & payload.
1. Add User to Role
PATCH
https://platform.adobe.io/data/foundation/access-control/administration/roles/{{ROLE_ID}}/subjects
[
{
"op": "add",
"path": "/user",
"value": "<userid>"
}
]
2. Add UserGroup to Role
PATCH
https://platform.adobe.io/data/foundation/access-control/administration/roles/{{ROLE_ID}}/subjects
[
{
"op": "add",
"path": "/ims-group",
"value": "<group-id>"
}
]
This documentation update is in progress, the payload should be something like this
[
{
"op": "add",
"path": "/user",
"value": "adobeid"
}
]
Here’s the link to download User Management API collection.
Thanks Nitesh for your response. Looks like both payload and URL mentioned in the document is incorrect.
For other's benefit, here is the correct URL & payload.
1. Add User to Role
PATCH
https://platform.adobe.io/data/foundation/access-control/administration/roles/{{ROLE_ID}}/subjects
[
{
"op": "add",
"path": "/user",
"value": "<userid>"
}
]
2. Add UserGroup to Role
PATCH
https://platform.adobe.io/data/foundation/access-control/administration/roles/{{ROLE_ID}}/subjects
[
{
"op": "add",
"path": "/ims-group",
"value": "<group-id>"
}
]
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies