AEM Cloud Service - Add users to Product Profile using User Management API


Trying the User Management API of Adobe Admin Console to add Users to Product Profiles (here we adding a user to Cloud Manager's Deployment Manager profile). Just a 1 click script way of what can also be achieved via Admin console https://adminconsole.adobe.com/ using few clicks...

1) Login to Developer Console https://developer.adobe.com/console, create a project and add the User Management API 




2) While you are on that screen, generate Access Token...




3) Run the Add to Product Profile request via curl or postman

curl --location 'https://usermanagement.adobe.io/v2/usermanagement/action/999999@AdobeOrg' \
--header 'X-Api-Key: bac......' \
--header 'X-Request-Id: 1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer eyJxxxx.......' \
--data-raw '[
{
"user" : "user@domain.com",
"do" : [{
"add" : {
"group" : ["Deployment Manager - Cloud Service"]
}
}]
}
]'




No comments:

Post a Comment