This discussion has been locked. The information referenced herein may be inaccurate due to age, software updates, or external references.
You can no longer post new replies to this discussion. If you have a similar question you can start a new discussion in this forum.

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?

Parents
  • Hey  

    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 (support@samanage.com) for them to determine what could be causing this.

    Thanks,

    Jason

Reply
  • Hey  

    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 (support@samanage.com) for them to determine what could be causing this.

    Thanks,

    Jason

Children
No Data