Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Users

List users

get
/api/{tenantId}/admin/users

Includes pending invitations (lastLogin null).

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Responses
200

Users returned.

An admin console user, as seen from this tenant.

idstring · min: 1Required

User id, used as userId by the other endpoints.

emailstring · min: 1Required

Sign-in e-mail, shared across tenants.

namestring · nullableOptional

Display name, shared across tenants; null when none.

blockedbooleanOptional

Whether the account is blocked from signing in to any tenant. Read-only.

lastLoginstring · nullableOptional

Last sign-in to any tenant; null when never signed in (e.g. invitation not yet used).

tenantRolestring · nullableOptional

Role on this tenant (administrator for a tenant administrator); null when none.

get/api/{tenantId}/admin/users
GET /api/{tenantId}/admin/users HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
[
  {
    "id": "text",
    "email": "text",
    "name": null,
    "blocked": true,
    "lastLogin": null,
    "tenantRole": null
  }
]

Invite user

post
/api/{tenantId}/admin/users

Creates a user or attaches an existing one to this tenant. If the user already has access and has signed in, returns 409; if they never signed in, the role is updated and a new invitation e-mail is sent (retry or correct the role). A new account, or one that has not been activated, gets an invitation e-mail (see the invitation endpoints); an activated account gets an "access granted" e-mail. Example: { "email": "jane@example.com", "role": "administrator" }.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Body

Request body to invite a user.

emailstring · min: 1Required

User e-mail. An existing account with this address is reused, otherwise one is created.

namestring · max: 200 · nullableOptional

Display name, up to 200 characters. Used only when a new account is created.

rolestring · min: 1Required

Role to grant on this tenant: administrator or a tenant role, case-insensitive. Else 400.

languagestring · nullableOptional

Admin console language of the invitee, used only when no account exists yet. English when omitted or unsupported.

Responses
201

User created or attached, and the e-mail sent.

An admin console user, as seen from this tenant.

idstring · min: 1Required

User id, used as userId by the other endpoints.

emailstring · min: 1Required

Sign-in e-mail, shared across tenants.

namestring · nullableOptional

Display name, shared across tenants; null when none.

blockedbooleanOptional

Whether the account is blocked from signing in to any tenant. Read-only.

lastLoginstring · nullableOptional

Last sign-in to any tenant; null when never signed in (e.g. invitation not yet used).

tenantRolestring · nullableOptional

Role on this tenant (administrator for a tenant administrator); null when none.

post/api/{tenantId}/admin/users
POST /api/{tenantId}/admin/users HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 58

{
  "email": "text",
  "name": null,
  "role": "text",
  "language": null
}
{
  "id": "text",
  "email": "text",
  "name": null,
  "blocked": true,
  "lastLogin": null,
  "tenantRole": null
}

Get user

get
/api/{tenantId}/admin/users/{userId}
Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
userIdstringRequired

User id, as returned in id.

tenantIdstringRequired
Responses
200

User returned.

An admin console user, as seen from this tenant.

idstring · min: 1Required

User id, used as userId by the other endpoints.

emailstring · min: 1Required

Sign-in e-mail, shared across tenants.

namestring · nullableOptional

Display name, shared across tenants; null when none.

blockedbooleanOptional

Whether the account is blocked from signing in to any tenant. Read-only.

lastLoginstring · nullableOptional

Last sign-in to any tenant; null when never signed in (e.g. invitation not yet used).

tenantRolestring · nullableOptional

Role on this tenant (administrator for a tenant administrator); null when none.

get/api/{tenantId}/admin/users/{userId}
GET /api/{tenantId}/admin/users/{userId} HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "id": "text",
  "email": "text",
  "name": null,
  "blocked": true,
  "lastLogin": null,
  "tenantRole": null
}

Update user

put
/api/{tenantId}/admin/users/{userId}

Replaces the role on this tenant and, when name is sent, the display name on every tenant. Sends no e-mail.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
userIdstringRequired

User id, as returned in id.

tenantIdstringRequired
Body

Request body to update a user.

namestring · max: 200 · nullableOptional

New display name, up to 200 characters. Null keeps the current one; the name changes on every tenant.

rolestring · min: 1Required

Role to hold on this tenant, replacing the current one: administrator or a tenant role, case-insensitive. Else 400.

Responses
200

User updated.

An admin console user, as seen from this tenant.

idstring · min: 1Required

User id, used as userId by the other endpoints.

emailstring · min: 1Required

Sign-in e-mail, shared across tenants.

namestring · nullableOptional

Display name, shared across tenants; null when none.

blockedbooleanOptional

Whether the account is blocked from signing in to any tenant. Read-only.

lastLoginstring · nullableOptional

Last sign-in to any tenant; null when never signed in (e.g. invitation not yet used).

tenantRolestring · nullableOptional

Role on this tenant (administrator for a tenant administrator); null when none.

put/api/{tenantId}/admin/users/{userId}
PUT /api/{tenantId}/admin/users/{userId} HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 27

{
  "name": null,
  "role": "text"
}
{
  "id": "text",
  "email": "text",
  "name": null,
  "blocked": true,
  "lastLogin": null,
  "tenantRole": null
}

Remove user

delete
/api/{tenantId}/admin/users/{userId}

Removes the access to this tenant but keeps the account and its other tenants. A pending invitation stops working. Idempotent: an unknown id also returns 204.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
userIdstringRequired

User id, as returned in id.

tenantIdstringRequired
Responses
204

User removed, or no such user.

No content

delete/api/{tenantId}/admin/users/{userId}
DELETE /api/{tenantId}/admin/users/{userId} HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*

No content

Get my profile and permissions on this tenant

get
/api/{tenantId}/admin/users/me

Profile, role and expanded permissions of the signed-in user on this tenant.

Required scopes
This endpoint requires the following scopes:
Authorizations
OAuth2implicitRequired
Authorization URL:
Path parameters
tenantIdstringRequired
Responses
200

Profile and permissions returned.

The signed-in user, as seen from this tenant.

userIdstring · min: 1Required

User id.

emailstring · min: 1Required

Sign-in e-mail.

displayNamestring · nullableOptional

Display name; null when none.

rolestring · nullableOptional

Role on this tenant: globalAdministrator for a global administrator, administrator for a tenant administrator.

permissionsstring[]Required

Every scope held on this tenant, sorted, wildcards expanded: role permissions plus individual grants.

get/api/{tenantId}/admin/users/me
GET /api/{tenantId}/admin/users/me HTTP/1.1
Host: api.thewalletcrew.io
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
{
  "userId": "text",
  "email": "text",
  "displayName": null,
  "role": null,
  "permissions": [
    "text"
  ]
}

Last updated