Users
Deprecated, use /api/v1/users instead. Return the list of users of the tenant.
Bearer authentication
Filter the returned entities to only those that created by the requesting subject
Available only when SSO enabled
The complete set of permissions.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /v1/k8s/users HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"entityType": "regular-user",
"tenantId": 1001,
"userId": "4008188b-ab50-4aa5-a3f2-b78091ccf92d",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdAt": "2021-12-14T16:04:15.099Z"
},
null,
{
"email": "user@email.com",
"lastLogin": "2021-12-14T16:04:15.099Z"
}
]Deprecated endpoint. Use the new endpoint api/v1/users instead and api/v1/authorization/access-rules to give user permissions.
Bearer authentication
Email address of the user.
user@email.comThe type of authentication entity.
regular-userPossible values: The id of the tenant.
1001The user's password.
secret!123True if the user is requested to change his password upon next login.
truefalseUnique identifier of the user
4008188b-ab50-4aa5-a3f2-b78091ccf92dThe id of the cluster.
71f69d83-ba66-4822-adf5-55ce55efd210The complete set of permissions.
Email address of the user.
user@email.comThe type of authentication entity.
regular-userPossible values: The id of the tenant.
1001The user's password.
secret!123True if the user is requested to change his password upon next login.
truefalseUnique identifier of the user
4008188b-ab50-4aa5-a3f2-b78091ccf92dThe id of the cluster.
71f69d83-ba66-4822-adf5-55ce55efd210Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
POST /v1/k8s/users HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 276
{
"email": "user@email.com",
"roles": [
"viewer"
],
"entityType": "regular-user",
"tenantId": 1001,
"password": "secret!123",
"needToChangePassword": true,
"permitAllClusters": false,
"userId": "4008188b-ab50-4aa5-a3f2-b78091ccf92d",
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
]
}{
"email": "user@email.com",
"roles": [
"viewer"
],
"entityType": "regular-user",
"tenantId": 1001,
"password": "secret!123",
"needToChangePassword": true,
"permitAllClusters": false,
"userId": "4008188b-ab50-4aa5-a3f2-b78091ccf92d",
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
]
}Get the details of a given user. This endpoint requires ADMIN, EDITOR or VIEWER role. Deprecated endpoint. Use the new endpoint api/v1/users/{userId} instead.
Bearer authentication
Unique identifier of the user
4008188b-ab50-4aa5-a3f2-b78091ccf92dUser details.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /v1/k8s/users/{userId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"entityType": "regular-user",
"tenantId": 1001,
"userId": "4008188b-ab50-4aa5-a3f2-b78091ccf92d",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdAt": "2021-12-14T16:04:15.099Z",
"email": "user@email.com",
"lastLogin": "2021-12-14T16:04:15.099Z"
}Update the details of a given user. This endpoint requires ADMIN role. Deprecated endpoint. Use the new endpoint api/v1/users/{userId} instead.
Bearer authentication
Unique identifier of the user
4008188b-ab50-4aa5-a3f2-b78091ccf92dUser updated successfully
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
PUT /v1/k8s/users/{userId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 302
{
"entityType": "regular-user",
"tenantId": 1001,
"userId": "4008188b-ab50-4aa5-a3f2-b78091ccf92d",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdAt": "2021-12-14T16:04:15.099Z",
"email": "user@email.com",
"lastLogin": "2021-12-14T16:04:15.099Z"
}{
"entityType": "regular-user",
"tenantId": 1001,
"userId": "4008188b-ab50-4aa5-a3f2-b78091ccf92d",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdAt": "2021-12-14T16:04:15.099Z",
"email": "user@email.com",
"lastLogin": "2021-12-14T16:04:15.099Z"
}Delete the given user from the tenant. This endpoint requires ADMIN role. Deprecated endpoint. Use the new endpoint api/v1/users/{userId} instead.
Bearer authentication
Unique identifier of the user
4008188b-ab50-4aa5-a3f2-b78091ccf92dAvailable only when SSO enabled
User deleted successfully.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
DELETE /v1/k8s/users/{userId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Get the complete set of permissions that a tenant can grant to users and applications. Deprecated endpoint. please refer to Roles & Access rules API.
Bearer authentication
The complete set of permissions.
viewerPossible values: Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /v1/k8s/users/roles HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
"viewer"
]Return the set of permissions granted to a given user. Deprecated endpoint. please reffer to Roles & Access rules API.
Bearer authentication
Unique identifier of the user
4008188b-ab50-4aa5-a3f2-b78091ccf92dA set of permissions that the user is granted.
viewerPossible values: Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /v1/k8s/users/{userId}/roles HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
"viewer"
]Return the list of groups of the tenant. Deprecated endpoint. please reffer to Roles & Access rules API.
Bearer authentication
Filter the returned entities to only those that created by the requesting subject
The complete set of permissions.
groupThe id of the tenant.
1001Group's name
group1falseA list of clusters that the user or application can access.
71f69d83-ba66-4822-adf5-55ce55efd210uid of the user
aaaaa-3333-4444-bbbbbb-111Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /v1/k8s/groups HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[]Create a new group and assign it with roles. Deprecated endpoint. please reffer to Roles & Access rules API.
Bearer authentication
Group's name
group1Empty email address
sso-userThe id of the tenant.
1001falseGroup's name
group1The id of the cluster.
71f69d83-ba66-4822-adf5-55ce55efd210uid of the user
aaaaa-3333-4444-bbbbbb-111The complete set of permissions.
Group's name
group1Empty email address
sso-userThe id of the tenant.
1001falseGroup's name
group1The id of the cluster.
71f69d83-ba66-4822-adf5-55ce55efd210uid of the user
aaaaa-3333-4444-bbbbbb-111Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
POST /v1/k8s/groups HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 237
{
"username": "group1",
"email": "",
"roles": [
"viewer"
],
"entityType": "sso-user",
"tenantId": 1001,
"permitAllClusters": false,
"userId": "group1",
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"createdBy": "aaaaa-3333-4444-bbbbbb-111"
}{
"username": "group1",
"email": "",
"roles": [
"viewer"
],
"entityType": "sso-user",
"tenantId": 1001,
"permitAllClusters": false,
"userId": "group1",
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"createdBy": "aaaaa-3333-4444-bbbbbb-111"
}Get the details of a given group. This endpoint requires ADMIN, EDITOR or VIEWER role. Deprecated endpoint. please reffer to Roles & Access rules API.
Bearer authentication
Unique identifier of the group
group1Group details.
groupThe id of the tenant.
1001Group's name
group1falseA list of clusters that the user or application can access.
71f69d83-ba66-4822-adf5-55ce55efd210uid of the user
aaaaa-3333-4444-bbbbbb-111Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /v1/k8s/groups/{groupName} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"entityType": "group",
"tenantId": 1001,
"userId": "group1",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdBy": "aaaaa-3333-4444-bbbbbb-111"
}Update the details of a given group. This endpoint requires ADMIN role. Deprecated endpoint. please reffer to Roles & Access rules API.
Bearer authentication
Unique identifier of the group
group1Group updated successfully
groupThe id of the tenant.
1001Group's name
group1falseA list of clusters that the user or application can access.
71f69d83-ba66-4822-adf5-55ce55efd210uid of the user
aaaaa-3333-4444-bbbbbb-111Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
PUT /v1/k8s/groups/{groupName} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 223
{
"entityType": "group",
"tenantId": 1001,
"userId": "group1",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdBy": "aaaaa-3333-4444-bbbbbb-111",
"username": "group1"
}{
"entityType": "group",
"tenantId": 1001,
"userId": "group1",
"permitAllClusters": false,
"permittedClusters": [
"71f69d83-ba66-4822-adf5-55ce55efd210"
],
"roles": [
"viewer"
],
"createdBy": "aaaaa-3333-4444-bbbbbb-111"
}Delete the given group from the tenant. This endpoint requires ADMIN role. Deprecated endpoint. please reffer to Roles & Access rules API.
Bearer authentication
Unique identifier of the group
group1Group deleted successfully.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
DELETE /v1/k8s/groups/{groupName} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Retrieve a list of platform users.
Bearer authentication
Filter results by user attribute.
runai.is_local:trueFilter results by a parameter. Use the format field-name operator value. Operators are <= Less than or equal, >= Greater than or equal, =@ contains. Dates are in ISO 8601 timestamp format and available for operators <=, >= and ==.
["username=@test,lastLogin>=2024-09-24T00:00:00.00Z,isLocal==false"]Sort results by a parameters.
Sort results in descending or ascending order.
ascPossible values: The offset of the first item returned in the collection.
100The maximum number of entries to return.
500Filter results by a free text search.
test@runExecuted successfully.
Bad request.
Unauthorized
Forbidden
unexpected error
unexpected error
GET /api/v1/users HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
"username": "test@run.ai",
"createdBy": "devops@run.ai",
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2022-01-01T00:00:00Z",
"lastLogin": "2023-02-01T00:00:00Z",
"isLocal": true,
"groups": [
"groupA",
"groupB"
]
}
]Use to create a local platform user.
Bearer authentication
The email of the user. Must be a valid email address.
^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$Created successfully.
Bad request.
Unauthorized
Forbidden
The specified resource already exists
unexpected error
unexpected error
POST /api/v1/users HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"email": "test@run.ai",
"resetPassword": false
}{
"id": "0eeaf222-e503-4f35-9d9c-c419816272e3",
"username": "test@run.ai",
"tempPassword": "asdasidjn9d"
}count users
Bearer authentication
Filter results by a parameter. Use the format field-name operator value. Operators are <= Less than or equal, >= Greater than or equal, =@ contains. Dates are in ISO 8601 timestamp format and available for operators <=, >= and ==.
["username=@test,lastLogin>=2024-09-24T00:00:00.00Z,isLocal==false"]Filter results by a free text search.
test@runok
1Bad request.
Unauthorized
Forbidden
unexpected error
GET /api/v1/users/count HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"count": 1
}Use to force a user to logout.
Bearer authentication
The id of the user
Executed successfully.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
POST /api/v1/users/{userId}/logout HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Use to to reset a user's password.
Bearer authentication
The id of the user
Regenerated successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
POST /api/v1/users/{userId}/password HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"tempPassword": "asdasidjn9d"
}Retrieve a user's details by id.
Bearer authentication
The id of the user
Executed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
GET /api/v1/users/{userId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"id": "3434c-12323ab-4ce2ea6-b44fc-db344d",
"username": "test@run.ai",
"createdBy": "devops@run.ai",
"createdAt": "2020-01-01T00:00:00Z",
"updatedAt": "2022-01-01T00:00:00Z",
"lastLogin": "2023-02-01T00:00:00Z",
"isLocal": true,
"groups": [
"groupA",
"groupB"
]
}Use to delete a user by id.
Bearer authentication
The id of the user
Executed successfully.
No content
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
DELETE /api/v1/users/{userId} HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Bearer authentication
Password changed successfully.
Bad request.
Unauthorized
Forbidden
The specified resource was not found
unexpected error
unexpected error
POST /api/v1/me/password HTTP/1.1
Host: app.run.ai
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 55
{
"currentPassword": "Abcd!234",
"newPassword": "Zxcv!567"
}{
"tempPassword": "Abcd!234"
}Last updated