APIs & Integrations

teja21
Contributor

How can retrieve roles with users

I hit users api to get all users and I'm able to get users, however I'm not able to get their roles. If you see below screenshot, in response roleIds is empty array, but I have set permissions for users.

Users API screenshot:

teja21_0-1722346578149.png

And following is screenshot of Users in hubspot with acces.

 

teja21_1-1722346925420.png

Can anybody suggest a solution to get RoleIds with permissions provided to the users.

0 Upvotes
3 Replies 3
Jaycee_Lewis
Community Manager
Community Manager

How can retrieve roles with users

Hey, @teja21 👋 I made a request using Postman as well. It returned all my users and included the roleId as expected. Are there any additional details you can provide that might help us spot the difference?

CleanShot 2024-07-30 at 17.20.42@2x.png

 

 

Thanks! — Jaycee


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes
teja21
Contributor

How can retrieve roles with users

Hi, @Jaycee_Lewis I provided this access permissions to the user, I think it is sufficient to generate a role, is it correct?

teja21_0-1722398416305.png

If there any other settings need to be followed to generate role, please let me know. But what I found to setup a role is just giving a permission to the users while creating a new user. Further if this is incorrect way, then you can explain a flow to generate a role. That would be more helpful.

 

Regards,

@teja21 

0 Upvotes
Jaycee_Lewis
Community Manager
Community Manager

How can retrieve roles with users

That screenshot doesn't look like the correct area for roles. Roles are made up of permissions, but are separate. In-app, they are called Permission Sets. You'll find them by going to Settings > Users > Permission sets. 

CleanShot 2024-07-31 at 10.14.48@2x.png

Best,

Jaycee


HubSpot’s AI-powered customer agent resolves up to 50% of customer queries instantly, with some customers reaching up to 90% resolution rates.
Learn More.


Did you know that the Community is available in other languages?
Join regional conversations by changing your language settings !
0 Upvotes