User Management

List assignable roles

Changed on

Lists the workspace system roles and custom roles you can assign with Update User Role. System roles come first (member, editor, admin), then custom roles from oldest to newest. Each role includes id, kind, name, and description. Permission settings are not included. Custom role names are not unique, so use id when assigning a role. Requires an API key with the USER_MANAGEMENT_API scope.

get/user-management/v1/roles

Request

  • Base URL
    https://api.langdock.com
  • URL
    https://api.langdock.com/user-management/v1/roles
  • Auth
    HTTP bearer

Response

Assignable roles

Example response

{
  "roles": [
    {
      "id": "33333333-3333-4333-8333-333333333333",
      "kind": "custom",
      "name": "Support lead",
      "description": "Can view analytics and governance"
    }
  ]
}

Changes