APIs & Integrations

tfujita
Member

User Provisioning with pre-configured role templates

SOLVE

In POST/settings/v3/users/ is it possible to select from pre-configured role templates which is one of the option when creating an account on UI?

 

303BFAA0-7E64-41EC-8707-AA837CB41107.jpg

0 Upvotes
1 Accepted solution
rhenry
Solution
HubSpot Employee
HubSpot Employee

User Provisioning with pre-configured role templates

SOLVE

Hello @tfujita , 

If the default role (pre-configured) template is saved as a 'custom role' in the UI then integrators can use the 'Retrieves the roles on an account' endpoint: GET /settings/v3/users/roles to retrieve the role Id.
You can then use the role Id along with the 'Adds a user' endpoint: POST
/settings/v3/users/ to assign the role to a user. 

If you have any follow up questios, just let me know. 


Rahmona Henry

View solution in original post

2 Replies 2
tfujita
Member

User Provisioning with pre-configured role templates

SOLVE

Thank you so much

0 Upvotes
rhenry
Solution
HubSpot Employee
HubSpot Employee

User Provisioning with pre-configured role templates

SOLVE

Hello @tfujita , 

If the default role (pre-configured) template is saved as a 'custom role' in the UI then integrators can use the 'Retrieves the roles on an account' endpoint: GET /settings/v3/users/roles to retrieve the role Id.
You can then use the role Id along with the 'Adds a user' endpoint: POST
/settings/v3/users/ to assign the role to a user. 

If you have any follow up questios, just let me know. 


Rahmona Henry