These endpoints allow for the invitation and management of users to an HQ subaccount.
Invite a new user to a subaccount.
Users can only be invited to a single subaccount via the public api. To assign multiple subaccounts to a newly invited user, please do so via the web application.
Additionally, adding further permissions to a newly invited user must also be completed via the web application; this endpoint will assign role type only.
Parameters: |
|
---|---|
Raises : | Http400 if the role provided is invalid. |
Raises : | Http401 if the requesting user is unable to create a user of that role type. |
Lists the users of an account.
This endpoint allows owners and managers with the ‘manage_users’ permission to list the users for either the parent account, the parent account and all subs, or a particular subaccount.The list returned will include users that have accepted their invitation, and users that have not.
Additionally, there are params to include subaccount users, to filter via ‘account_id’, and to search for a specific user. This endpoint is paginated and will need to be called with pagination params if the response includes more than 500 users.
Parameters: |
|
---|---|
Returns : | A response with a list of users including the accounts they have access to, the permissions they have, their role, and other user related data. |
Raises : | Http404 if the parent account or requesting user does not exist. |
Raises : | Http401 if the requesting user does not have access to the account or the ‘manage_users’ permission. |