For more information, please refer to this announcement explaining best practices for getting answers to questions.
Assigning role while creating a user through REST API
Summary
Assigning role while creating a user through REST APIContent
All, How do you assign a role while creating a user through REST API. I was able to create a user along with the password, but not able to assign the role and getting the error message.
Here are the parameters
{
"schemas":[
"urn:scim:schemas:core:2.0:User"
],
"name":{
"givenName":"John",
"familyName":"Doe"
},
"active":true,
"userName":"Jdoer001@gmai1.com",
"emails":[
{
"primary":true,
"value":"JDoerr001@gmail.com",
"type":"W"
}
],
"displayName":"John Doe",
"password": "Welcome2HCM",
"roles": [
{
"value": "ORA_PER_EMPLOYEE_ABSTRACT"
}
]
}
Without the role parameters, I can create the user. But when the "roles" parameter is added (see above), I get Error - "Attribute roles is not allowed in the payload. (ASE-4335076)"