Tree BG 1
Tree
Tree
TreeLeaves
TreeLeaves
Cat IdleGrassGrassRockRock

Beta Admin User Groups Endpoints

(beta) Admin API - manage user groups. Requires an admin API key.

Get User Groups

GET /api/admin/user-groups

Get all user groups across the organization.

200

OK

User groups on this page.

page
*integer

Page number returned.

page_size
*integer

Maximum number of results per page.

total
*integer

Total number of user groups that match the request.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

{
  "items": [
    {
      "description": null,
      "name": "My resource",
      "uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
    }
  ],
  "page": "1",
  "page_size": "1000",
  "total": 56
}

Create User Group

POST /api/admin/user-groups

Create a new user group.

200

OK

description
*string|null

Optional description of the user group.

externally_managed
boolean|null

Whether the group is managed by an external system.

name
*string

Name of the user group.

organization_role
string|null

Organization role assigned to the group.

target_type
"W"|"O"

Type of resources this group can access.

uuid
*string

User group ID.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups \
 -X POST \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{
  "name": "My resource"
}'

200

{
  "description": null,
  "name": "My resource",
  "uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
}

Provision Group To Workspace

POST /api/admin/user-groups/provision-workspace

Provision all users from a user group to a workspace with a specific role.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups/provision-workspace \
 -X POST \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{
  "user_group_uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088",
  "workspace_uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
}'

Get User Group

GET /api/admin/user-groups/{group_uuid}

Get a specific user group.

200

OK

description
*string|null

Optional description of the user group.

externally_managed
boolean|null

Whether the group is managed by an external system.

name
*string

Name of the user group.

organization_role
string|null

Organization role assigned to the group.

target_type
"W"|"O"

Type of resources this group can access.

uuid
*string

User group ID.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups/{group_uuid} \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

{
  "description": null,
  "name": "My resource",
  "uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
}

Delete User Group

DELETE /api/admin/user-groups/{group_uuid}

Delete a user group.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups/{group_uuid} \
 -X DELETE \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json'

Update User Group

PATCH /api/admin/user-groups/{group_uuid}

Update a user group.

200

OK

description
*string|null

Optional description of the user group.

externally_managed
boolean|null

Whether the group is managed by an external system.

name
*string

Name of the user group.

organization_role
string|null

Organization role assigned to the group.

target_type
"W"|"O"

Type of resources this group can access.

uuid
*string

User group ID.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups/{group_uuid} \
 -X PATCH \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{}'

200

{
  "description": null,
  "name": "My resource",
  "uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
}

Get User Group Members

GET /api/admin/user-groups/{group_uuid}/members

Get members of a user group.

200

OK

Group members on this page.

page
*integer

Page number returned.

page_size
*integer

Maximum number of results per page.

total
*integer

Total number of group members that match the request.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups/{group_uuid}/members \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

{
  "members": [
    {
      "email": null,
      "name": null,
      "user_uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
    }
  ],
  "page": "1",
  "page_size": "1000",
  "total": 56
}

Assign Users To Group

POST /api/admin/user-groups/{group_uuid}/members

Assign users to a user group.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups/{group_uuid}/members \
 -X POST \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{
  "user_uuids": [
    "019b2bd7-96e7-7219-8c0b-45a73da50088"
  ]
}'

Remove Users From Group

DELETE /api/admin/user-groups/{group_uuid}/members

Remove users from a user group.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups/{group_uuid}/members \
 -X DELETE \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{
  "user_uuids": [
    "019b2bd7-96e7-7219-8c0b-45a73da50088"
  ]
}'

Get Group Workspace Assignments

GET /api/admin/user-groups/{group_uuid}/workspaces

List workspace assignments for a user group.

200

OK

Workspace assignments on this page.

page
*integer

Page number returned.

page_size
*integer

Maximum number of results per page.

total
*integer

Total number of Workspace assignments that match the request.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups/{group_uuid}/workspaces \
 -X GET \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE'

200

{
  "items": [
    {
      "created": "2025-10-07T20:56:01.974Z",
      "roles": [
        {
          "name": "My resource",
          "uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
        }
      ],
      "workspace_name": "reprehenderit ut dolore",
      "workspace_uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
    }
  ],
  "page": "1",
  "page_size": "1000",
  "total": 56
}

Assign Group To Workspace

POST /api/admin/user-groups/{group_uuid}/workspaces

Assign a user group to a workspace.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups/{group_uuid}/workspaces \
 -X POST \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{
  "workspace_uuid": "019b2bd7-96e7-7219-8c0b-45a73da50088"
}'

Remove Group From Workspace

DELETE /api/admin/user-groups/{group_uuid}/workspaces/{workspace_uuid}

Remove a user group from a workspace.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups/{group_uuid}/workspaces/{workspace_uuid} \
 -X DELETE \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json'

Update Group Workspace Assignment

PATCH /api/admin/user-groups/{group_uuid}/workspaces/{workspace_uuid}

Update the workspace role assignment for a user group.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups/{group_uuid}/workspaces/{workspace_uuid} \
 -X PATCH \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{}'

Update User Group Organization Role

PATCH /api/admin/user-groups/{group_uuid}/organization-role

Update the organization role for a user group.

Playground

Test the endpoints live

curl https://api.mistral.ai/api/admin/user-groups/{group_uuid}/organization-role \
 -X PATCH \
 -H 'Authorization: Bearer YOUR_APIKEY_HERE' \
 -H 'Content-Type: application/json' \
 -d '{
  "organization_role": "A"
}'