# Role names through Hubspot API

**URL:** <https://community.hubspot.com/t/role-names-through-hubspot-api/121177>\
**Category:** CRM\
**Tags:** enterprise\
**Created:** [November 22, 2024, 11:19am UTC](https://community.hubspot.com/t/role-names-through-hubspot-api/121177 "2024-11-22T11:19:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![GHubspot](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@GHubspot](https://community.hubspot.com/u/GHubspot)\
**Post date:** [November 22, 2024, 11:19am UTC](https://community.hubspot.com/t/role-names-through-hubspot-api/121177/1 "2024-11-22T11:19:14Z")

</div>

Hi,

Greetings for the day.

Is there any way to get the role names assigned to the user. In the User API, we are getting role ids i.e. permission sets assigned to the user. But I want to get the role names as well which are assigned to the user.

URL-

 ![GHubspot_0-1732274279476.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/8/b/8b636fac6e1d20cb59914c48a9461b63363a34b6.jpeg)

[https://api.hubapi.com/settings/v3/users/71822949](https://api.hubapi.com/settings/v3/users/71822949)

Is there any property or field name which I can put in the url to get the role name details.

Kindly note that I have the enterprise version.

Thanks!

---

<div class="post-metadata">

**Author:** ![PamCotton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/pamcotton/32/47916_2.png) [@PamCotton](https://community.hubspot.com/u/PamCotton)\
**Post date:** [November 22, 2024, 10:24pm UTC](https://community.hubspot.com/t/role-names-through-hubspot-api/121177/2 "2024-11-22T22:24:52Z")

</div>

Hey @GHubspot, thank you for posting in our Community!

The User API provides roleIds but not role names directly. To get role names, you’ll need to use the Roles API ([https://api.hubapi.com/settings/v3/roles](https://api.hubapi.com/settings/v3/roles)) to fetch all roles and match their IDs with the roleIds from the User API.

Unfortunately, there isn’t a direct way to include role names in the User API response. To our top experts, @Anton and @DanielSanchez do you have any recommendations for @GHubspot matter?

Thank you,

Pam

---

<div class="post-metadata">

**Author:** ![GHubspot](https://avatars.discourse-cdn.com/v4/letter/g/a88e4f/32.png) [@GHubspot](https://community.hubspot.com/u/GHubspot)\
**Post date:** [November 26, 2024, 9:08am UTC](https://community.hubspot.com/t/role-names-through-hubspot-api/121177/3 "2024-11-26T09:08:15Z")

</div>

Hi @Pam ,

I checked the Role API URL but I am not getting the output.

 ![GHubspot_0-1732612040521.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/3X/c/1/c165318be3c6c5e85c9abee77a4d8a55f595b469.jpeg)

Is there anyway to get that?

Thanks
