Adobe Add User via API
To add a user to a role 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 “Add 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" : [ { "createFederatedID": { "email": "{{issue.reporter.emailAddress}}", "country": "SE", "firstname": "{{issue.reporter.displayName}}", "lastname": "{{issue.reporter.displayName}}", "option": "ignoreIfAlreadyExists" } }, { "add" : { "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