You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started with Redwood for Oracle Cloud HCM   Begin Now
To ensure that questions get required attention from community members and are NOT left unanswered, it’s important for the author to indicate (by selecting “Yes” or “No” when prompted) whether the question was answered. (newly added) Please note that it is also important to respond to EACH comment your question receives. Your Yes or No response ensures an accurate status for your question.

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

edited Feb 4, 2020 4:49PM in HCM Integrations 9 comments

Summary

Assigning role while creating a user through REST API

Content

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)"

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!