> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/users/llms.txt)
> Source: https://docs.saleor.io/api-reference/users/queries/permission-groups

# permissionGroups Query

List of permission groups.

Requires the MANAGE\_STAFF permission.

```graphql
permissionGroups(
  filter: PermissionGroupFilterInput
  sortBy: PermissionGroupSortingInput
  before: String
  after: String
  first: Int
  last: Int
): GroupCountableConnection
```

Details

```graphql
type GroupCountableConnection {
  pageInfo: PageInfo!
  edges: [GroupCountableEdge!]!
  totalCount: Int
}
```

<a id="arguments"></a>

### Arguments

<a id="filter"></a>

#### [`filter`](#filter) ● [`PermissionGroupFilterInput`](/api-reference/users/inputs/permission-group-filter-input.md)

Filtering options for permission groups.

<a id="sort-by"></a>

#### [`sortBy`](#sort-by) ● [`PermissionGroupSortingInput`](/api-reference/users/inputs/permission-group-sorting-input.md)

Sort permission groups.

<a id="before"></a>

#### [`before`](#before) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Return the elements in the list that come before the specified cursor.

<a id="after"></a>

#### [`after`](#after) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

Return the elements in the list that come after the specified cursor.

<a id="first"></a>

#### [`first`](#first) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

Retrieve the first n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

<a id="last"></a>

#### [`last`](#last) ● [`Int`](/api-reference/miscellaneous/scalars/int.md)

Retrieve the last n elements from the list. Note that the system only allows fetching a maximum of 100 objects in a single query.

<a id="type"></a>

### Type

<a id="groupcountableconnection"></a>

#### [`GroupCountableConnection`](/api-reference/users/objects/group-countable-connection.md)
