Skip to content

Users

3 calls. Every request needs the Authorization header: see the overview.

GET /users

Every user of the tenant (Tenant.Admin).

Who can call it: Tenant admins only, with an API key or a portal session. Try it in the API playground.

Response: User[] (200)

curl -X GET "https://api.maitento.com/users" \
-H "Authorization: $MAITENTO_AUTH"
PUT /users/by-id/{id}

Grants or removes admin, enables or disables a user (Tenant.Admin).

Who can call it: Tenant admins only, with an API key or a portal session. Try it in the API playground.

Path parameters

NameTypeRequiredDescription
iduuidyes

Request body: UserUpdateRequest

FieldTypeRequiredDescription
isAdminbooleanTrue to make the user a tenant admin (Tenant.Admin); false for an ordinary member (Tenant.User).
isEnabledbooleanWhether the user may sign in.

Response: no body (204)

curl -X PUT "https://api.maitento.com/users/by-id/<id>" \
-H "Authorization: $MAITENTO_AUTH" \
-H "Content-Type: application/json" \
-d '{"isAdmin":false,"isEnabled":false}'
GET /users/self

The caller: user, tenant and roles. user.id is the user id an API key is written with ("<userId>:<secret>").

Who can call it: Admins and members, with an API key or a portal session. Try it in the API playground.

Response: CurrentUserResponse (200)

curl -X GET "https://api.maitento.com/users/self" \
-H "Authorization: $MAITENTO_AUTH"