Retrieve a role

Retrieves an existing role based on its name

Path parameters
name
string required

Role name

Example SuperAdmin
Responses
  • 200 The retrieved role
    _id
    string (Internal ID) required

    Object internal ID

    name
    string required

    The name of the role

    description
    string | null

    The description of the role

    permissions
    array of objects | null (Permission)

    The role's permissions

  • 401 Authentication error
  • 403 Forbidden action
  • 404 Role not found
  • 500 Unexpected internal server error