Skip to main content

Get roles​

This endpoint can retrieve roles from NERM. Optionally you can provide parameters to filter results.

Query Parameters
  • query object

    Allows for pagination and sorting using the deepObject notation.


    resource?query[limit]=50&query[offset]=0&query[order]=label


    ParameterDescriptionDefault
    limitLimits the number of results returned100
    offsetReturns the results starting at the value provided0
    orderAllows you to determine the order in which the data is returned (not available on profile attributes)id
    Example: query[limit]=100&query[offset]=50&query[order]=created_at
  • metadata boolean

    Returns batching metadata in the response

    Example: true
Responses

Expected response to a valid request


Schema
  • roles object[]
  • id uuid

    the id

  • uid string

    Possible values: >= 32 characters and <= 32 characters

    the uid

  • name string

    The name

  • groups string[]

    the groups

  • _metadata object
  • limit int32

    The limit

  • offset int32

    The offset

  • total int32

    The total

  • next string

    The link to the next page of data

  • previous string

    The link to the previous page of data

Loading...