Greetings! I’m struggling with submitting a new user request to POST /manage/v1/user.
When I submit the information below, I get a response that has a 200 status code and an array of active users as a response. The user is not created.
Weirdly, when I submit this through the UI (actually, this is where I got the JSON from!) the submit goes to the same location (/manage/v1/user) and the user is created. Even more weird, if I authenticate with the the api browser and submit the same JSON, it creates the user as well.
I’m logged in as the same user in the UI, and the api browser. And I send the exact same user’s username/password when requesting the oauth token. I’m using resource owner password grant for my workflow.
This leads me to conclude that there’s something wrong with my oAuth flow, or that resource owner password grant doesn’t support creating users.
Does anyone have any thoughts on how to further diagnose this?
I came across this post that had a similar behavor, but given that the UI and api browser work, it doesn’t make sense to me that I can’t get this payload to work with my oauth app!
Any thoughts would be much appreciated!
{
"userid": "frank.underwood@info.com",
"email": "frank.underwood@info.com",
"firstname": "Frank",
"lastname": "Underwood",
"password": "Password123!",
"force_change": 1,
"send_notification_email": 1,
"level": "6",
"ui.language": "english",
"expiration": "2025-10-01",
"valid": 1,
"email_validation_status": "1",
"date_format": "",
"timezone": "",
"manager": {
"1": null
},
"can_manage_subordinates": false,
"select_orgchart": {
"26": 1
},
"additional_fields": {
"1": 230,
"8": "Employee",
"10": "12",
"11": "White House"
},
"employees": {}
}
