Skip to main content
Solved

Can a user's Primary Role be updated via the API?


DannyPancratz
Forum|alt.badge.img+7

I don’t see it called out as an option in the PUT action for Update a field in user's profile, but maybe it’s possible. 

If so, what are the details for adding that into the call? 

(@leo-inspired / Gainsight DH team)

Best answer by ravi.kurma

Hi @DannyPancratz!

You can use this API Call:

https://api2-us-west-2.insided.com/docs/user/#operation/addRole

For example with this payload you can set the primary role as “super-user”. 

 

Some most used example roles:

roles.registered

roles.moderator

roles.community-manager

View original
Did you find this topic helpful?

3 replies

ravi.kurma
  • Helper ⭐️⭐️⭐️
  • 76 replies
  • Answer
  • October 18, 2023

Hi @DannyPancratz!

You can use this API Call:

https://api2-us-west-2.insided.com/docs/user/#operation/addRole

For example with this payload you can set the primary role as “super-user”. 

 

Some most used example roles:

roles.registered

roles.moderator

roles.community-manager


DannyPancratz
Forum|alt.badge.img+7
  • Author
  • VIP ⭐️⭐️⭐️⭐️⭐️
  • 963 replies
  • October 19, 2023

Thanks, @ravi.kurma!

What’s the role for Unregistered / not logged in?  


ravi.kurma
  • Helper ⭐️⭐️⭐️
  • 76 replies
  • October 19, 2023
ddpancratz wrote:

Thanks, @ravi.kurma!

What’s the role for Unregistered / not logged in?  

No problem! @DannyPancratz 

That would be:

roles.guest


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings