Skip to main content
GET
/
api
/
v1
/
accounts
/
{accountId}
/
roles
/
users
/
{userId}
Get all roles assigned to a user
curl --request GET \
  --url https://api.aion.xyz/api/v1/accounts/{accountId}/roles/users/{userId} \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "roleId": "project_admin",
      "status": "ACTIVE",
      "createdAt": "2023-11-07T05:31:56Z",
      "updatedAt": "2023-11-07T05:31:56Z",
      "projectId": "project-alpha"
    }
  ],
  "meta": {
    "total": 42,
    "page": 1,
    "pageSize": 20,
    "totalPages": 3
  }
}

Authorizations

Authorization
string
header
required

JWT Bearer token authentication

Path Parameters

accountId
string
required

The account identifier (external account ID)

Example:

"my-company-account"

userId
string
required

The user identifier (external user ID)

Example:

"john.doe"

Query Parameters

status
enum<string>

Filter role assignments by status The status of the role assignment

Available options:
ACTIVE,
INACTIVE
scope
enum<string>

Filter role assignments by role scope The scope of the role:

  • ACCOUNT: Role applies at the account level (e.g., account_admin)
  • PROJECT: Role applies at the project level (e.g., project_admin, project_reader)
  • RESOURCE: Role applies to specific resources
Available options:
ACCOUNT,
PROJECT,
RESOURCE
projectId
string

Filter role assignments by project ID

Example:

"project-alpha"

Response

Successfully retrieved user role assignments

data
object[]
meta
object