Adobe Remove user via API
To add a remove to a user from a group in Adobe
in iHub
Click Create and select an action
Select the action created in this Adobe Exchange JWT to an Access token tutorial as parent.
Select application/json as template
Click Create
You will now have a “Exchange JWT to an Access token” parent and a child action called “Remove license”
Select Method POST
Add URL https://usermanagement.adobe.io/v2/usermanagement/action/MY_ORG_NUMBER@AdobeOrg
Add headers
Content-Type | application/json |
|
Accept | application/json |
|
Authorization | Bearer {{access_token}} | note that the access_token var comes from the parent |
x-api-key | key found in the Adobe console |
|
Enter body, (note country and the custom field holding the group might differ from your system)
[{ "user" : "{{issue.reporter.emailAddress}}", "requestID" : "{{issue.key}}", "do" : [ { "remove" : { "group" : [ "{{issue.customfield_102230}}"] } } ] }]
Test with an issue key
Result user in the reporter field gets added in the group specified in the field issue.customfield_102230. note that this Group needs to be in Adobe before this call.
Reference: API Reference