# Retrieve specific user's contacts permissions

**URL:** <https://community.hubspot.com/t/retrieve-specific-users-contacts-permissions/133334>\
**Category:** APIs & Integrations\
**Tags:** free\
**Created:** [May 26, 2025, 5:33am UTC](https://community.hubspot.com/t/retrieve-specific-users-contacts-permissions/133334 "2025-05-26T05:33:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![HWimalasiri](https://avatars.discourse-cdn.com/v4/letter/h/2acd7d/32.png) [@HWimalasiri](https://community.hubspot.com/u/HWimalasiri)\
**Post date:** [May 26, 2025, 5:33am UTC](https://community.hubspot.com/t/retrieve-specific-users-contacts-permissions/133334/1 "2025-05-26T05:33:19Z")

</div>

I followed

[https://developers.hubspot.com/docs/guides/api/settings/users/public-permissions](https://developers.hubspot.com/docs/guides/api/settings/users/public-permissions) documentation for retrieving a contact’s permitted user lists according to the create, delete, and update options. But I want to retrieve a contact’s permissions for only one user.

I followed this [https://developers.hubspot.com/docs/guides/api/settings/users/public-permissions](https://developers.hubspot.com/docs/guides/api/settings/users/public-permissions) documentation, But I have to load all contacts for filter specific user’s contacts permissions. This took too much time for me. Is there any direct solutions for Retrieve specific user’s contacts permissions?

---

<div class="post-metadata">

**Author:** ![Berangere](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/berangere/32/220784_2.png) [@Berangere](https://community.hubspot.com/u/Berangere)\
**Post date:** [May 26, 2025, 3:59pm UTC](https://community.hubspot.com/t/retrieve-specific-users-contacts-permissions/133334/2 "2025-05-26T15:59:40Z")

</div>

Hi @HWimalasiri and welcome, we are delighted to see you here!  
Great question, thanks for asking the HubSpot Community!  
I am glad to see that you already explored the permission endpoints for that, thanks!  
I’d love to ask our Top Experts: Hi [@sylvain\_tirreau](https://community.hubspot.com/t5/user/viewprofilepage/user-id/601366), @Anton and [@zach\_threadint](https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811) do you have a workaround or a way to help @HWimalasiri for a specific user, please?  
Have a lovely day and thanks so much in advance for your valuable contributions!  
Bérangère

---

<div class="post-metadata">

**Author:** ![sylvain\_tirreau](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sylvain_tirreau/32/67408_2.png) [@sylvain\_tirreau](https://community.hubspot.com/u/sylvain_tirreau)\
**Post date:** [May 27, 2025, 7:12am UTC](https://community.hubspot.com/t/retrieve-specific-users-contacts-permissions/133334/3 "2025-05-27T07:12:19Z")

</div>

As the documentation you mention says, you give the id of the object you want to retrieve at the end of hcrn (resourceId).

hcrn:{accountId}:{resourceType}:{resourceTypeId}:{resourceId}

Examples with portail 999999:

If you want to recover a contact’s permissions for contact id 123456:  
hcrn:999999:crm-object:0-1:123456

If you want to retrieve a user’s permissions for user id 654321:  
hcrn:999999:crm-object:0-115:654321

---

<div class="post-metadata">

**Author:** ![HWimalasiri](https://avatars.discourse-cdn.com/v4/letter/h/2acd7d/32.png) [@HWimalasiri](https://community.hubspot.com/u/HWimalasiri)\
**Post date:** [May 27, 2025, 7:40am UTC](https://community.hubspot.com/t/retrieve-specific-users-contacts-permissions/133334/4 "2025-05-27T07:40:30Z")

</div>

Yes [@sylvain\_tirreau](https://community.hubspot.com/t5/user/viewprofilepage/user-id/601366) . I also tried that parameter you mentioned here.

But it shows the “Object type id 0-115 is not supported” message to me.

 ![HWimalasiri_0-1748331581687.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/a/a182059d3773d572c911b2e73a99c7d3030f4a8b.png)

---

<div class="post-metadata">

**Author:** ![sylvain\_tirreau](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sylvain_tirreau/32/67408_2.png) [@sylvain\_tirreau](https://community.hubspot.com/u/sylvain_tirreau)\
**Post date:** [May 27, 2025, 8:52am UTC](https://community.hubspot.com/t/retrieve-specific-users-contacts-permissions/133334/5 "2025-05-27T08:52:59Z")

</div>

Yes, that’s normal. Sorry to have misled you.  
You can only retrieve users for a contact (deal, ticket, company) with this API. Nothing else.

But you can build a helper like that (my example is in Python) :

```lia-code-sample
def get_user_permissions(data: dict, user_id: int) -> dict:
 user_perms = {}

 resources = data.get("resources", {})
 for resource_id, actions in resources.items():
 perms = []
 for action_name, info in actions.items():
 if user_id in info.get("permittedUsers", []):
 perms.append(action_name)
 if perms:
 user_perms[resource_id] = perms

 return user_perms

```

This way you pass the result (I took the response code from the documentation page) of your query (hcrn:999999:crm-object:0-1:123456) into the function:

```lia-code-sample
user_id = 2620022
perms = get_user_permissions(hubspot_response, user_id)
print(perms)

```

And you’ll have something like that:

```lia-code-sample
# {'hcrn:123456:crm-object:0-1:64151': ['crm-object:COMMUNICATE',
# 'crm-object:EDIT',
# 'crm-object:VIEW',
# 'crm-object:DELETE']}

```
