- Getting permission values and user role
Get location users
Remove the user from the location
Get effective permissions for the authenticated Business User
Getting a list of user roles
Getting a list of user roles in the context of a location user
Updating permission values and user role
Create and Send an Invitation
Copy a User to Companies
Removing a User from Companies
Deprecated. Get location users
Getting permission values...
Returns the role and configured permission values for the specified Business User at this Location. The caller needs permission to view Location users. The user must be linked to the Location; otherwise the endpoint returns 404. For the authenticated caller's effective permissions, use GET /user/permissions/{location_id} instead.
Security
BearerPartnerUser
- Mock serverhttps://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/{location_id}/users/{user_id}/permissions
- Productionhttps://api.alteg.io/api/v1/locations/{location_id}/users/{user_id}/permissions
curl -i -X GET \
https://developer.alteg.io/_mock/en/b2b-v1/openapi/locations/123/users/123/permissions \
-H 'Accept: application/vnd.api.v2+json' \
-H 'Authorization: Bearer <YOUR_Bearer {PartnerToken}, User {UserToken}_HERE>' \
-H 'Content-Type: application/json'OK
Data on the permissions and user role
Example:
{ "is_editable": true, "staff_id": 12345, "user_role": "owner", "has_any_paid_permission": null, "user_permissions": [ { … }, { … }, { … } ] }
Response
{ "success": true, "data": { "user_role": "manager", "staff_id": 42, "is_editable": true, "has_any_paid_permission": false, "user_permissions": [ … ] }, "meta": [] }