Skip to main content

Get roles for currently logged in user

GET /api/admin/user/roles

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


Query Parameters

  • projectId string

    The id of the project you want to check permissions for



  • version integer required

    Possible values: >= 1

    The version of the role schema used

  • roles object[]required

    A list of roles

  • Array [
  • id integer required

    The role id

  • type string required

    A role can either be a global root role (applies to all projects) or a project role

  • name string required

    The name of the role

  • description string

    A more detailed description of the role and what use it's intended for

  • project string nullable

    What project the role belongs to

  • ]