Skip to main content

Retrieve user authorizations

GET 

/user-grants/:user_id/authorizations/

Retrieve User Authorizations.

This endpoint fetches the groups or permissions for a specific user. It searches for the user within the organization of the authenticated client and returns the user's roles or permissions.

Path Parameters:​

  • user_id (required): The unique identifier of the user whose authorizations are to be retrieved.

Response:​

  • 200 OK: Returns a list of groups or permissions for the specified user.
  • 404 Not Found: If the user is not found within the authenticated organization.

🔒 Authentication​

This endpoint require a valid OAuth2 Bearer

It supports account impersonation within Organization's sub-accounts using X-Eaz-Account-Id Header.

  • If the X-Eaz-Account-Id header is provided and the user has access rights to that sub-account, the impersonation context is applied.
  • Otherwise, the user's own account context is used.

Scopes :​

User must provide one of the following scopes:

  • admin
  • staff
  • user
  • org:admin
  • org:staff
  • org:user
  • organization:read

Request​

Responses​

Successful Response