API Stability Long-Term

The rolesPage() GraphQL query is used to get searchable paginated roles. This field is not yet available. It's described here as a preview and is used for getting a new pagination pattern.

For more information on roles in LogScale, see the Manage users & permissions documentation page. You may also want to look at the Manage users & permissions page for related information.

Syntax

Below is the syntax for the rolesPage() query field:

graphql
rolesPage(
     search: string
     pageNumber: integer!
     pageSize: integer!
   ): RolePage!

The input datatypes are standard ones. The return parameters for RolePage can be found in the table listed in the Returned Datatypes section. Below is an example of how this query field might be used:

Show:
graphql
query {
  rolesPage(search: "member", pageSize: 10, pageNumber: 1)
  {pageInfo {total, totalNumberOfRows}, page {
    id, displayName, usersCount, viewPermissions
  }}
}
Example Responses
Show:
json
{
  "data": {
    "rolesPage": {
      "pageInfo": {
        "total": 1,
        "totalNumberOfRows": 1
      },
      "page": [
        {
          "id": "pFLOxe7C8zkNbWOSP8VartJ0I6Kz0eK2",
          "displayName": "Member",
          "usersCount": 14,
          "viewPermissions": [
            "ChangeDashboards",
            "ChangeSavedQueries",
            "ChangeTriggers",
            "ChangeFiles",
            "ChangeParsers",
            "ReadAccess"
          ]
        }
      ]
    }
  }
}

Returned Datatypes

The returned datatype RolePage has its own parameters. Below is a list of them along with their datatypes and a description of each:

Table: RolePage

ParameterTypeRequiredDefaultStabilityDescription
Some arguments may be required, as indicated in the Required column. For some fields, this column indicates that a result will always be returned for this column.
Table last updated: Mar 17, 2025
page[Role]yes Long-TermThe roles to include in the page. See Role.
pageInfoPageTypeyes Long-TermThe page settings. See PageType.