v7

latestOpenAPI 3.0.3raw.githubusercontent.com2026-08-013764062.2 MB
Users

Get roles for currently logged in user

Gets roles assigned to currently logged in user. Both explicitly and transitively through group memberships

get/api/admin/user/roles

Query parameters

projectIdstring

The id of the project you want to check permissions for

Response

rolesSchema

versioninteger required

The version of the role schema used

Example response

{
  "version": 1,
  "roles": [
    {
      "id": 9,
      "type": "root",
      "name": "Editor",
      "description": "Users with the editor role have access to most features in Unleash but can not manage users and roles in the global scope. Editors will be added as project owners when creating projects and get superuser rights within the context of these projects. Users with the editor role will also get access to most permissions on the default project by default.",
      "project": "default"
    }
  ]
}