Showing results for 
Search instead for 
Did you mean: 
Create Post
Level 7

Service Desk (Samanage) Users API - Role not set properly

I have a script that I use to create new users and update existing users into SWSD (Samanage).

However, I've noticed that when I initially create the user (via the /users.json endpoint) - even when i specify the Requester role - the user is returned as a Service Agent User role. I then have to run another api call to update the user (I use the exact same JSON payload) and it successfully updates the role. I've proven this out via a series of Postman calls to create, read and update a test user.

Is there a reason why the initial user creation doesn't set the role properly, even when specified in the payload?

0 Kudos
1 Reply
Level 8

Hey @mjenkins 

I don't see any reason why your initial API call wouldn't be able to set the role properly when creating a user.  It is especially odd that it creates the user in a licensed role rather than the lowest 'Requester' role.  I suggest submitting the calls that you are using to our support team ( for them to determine what could be causing this.



0 Kudos