---
title: "GET /access-rules"
method: GET
path: "/access-rules"
tags: ["access-rules"]
---

# GET /access-rules

`GET /access-rules`

Returns a list of access rules for your organization.

## Query parameters

- `cursor` string
- `page_size` integer

## Response `200`

One page of access rules for your organization.

- PaginatedAccessRulesList
  - `next` string — The cursor with which to continue pagination if additional result pages exist.
  - `previous` string — The cursor used to retrieve the previous page of results.
  - `results` AccessRule[], required
    - `access_rule_id` string, uuid, required — The ID (group ID) of the access rule.
    - `name` string, required — The name of the access rule.
    - `description` string, required — A description of the group.
    - `admin_owner_id` string, uuid, required — The ID of the owner of the group.
    - `status` 'ACTIVE' | 'PAUSED', required — The status of the access rule.
    - `ruleClauses` RuleClauses, required
      - `when` RuleConjunction, required
        - `clauses` RuleDisjunction[], required
          - `selectors` TagSelector[], required
            - `key` string, required
            - `value` string, required
            - `connection_id` string, uuid, required
          - `attribute_selectors` UserAttributeSelector[]
            - `attribute` 'HR_IDP_STATUS', required
            - `values` string[], required
      - `unless` RuleConjunction
        - `clauses` RuleDisjunction[], required
          - `selectors` TagSelector[], required
            - `key` string, required
            - `value` string, required
            - `connection_id` string, uuid, required
          - `attribute_selectors` UserAttributeSelector[]
            - `attribute` 'HR_IDP_STATUS', required
            - `values` string[], required

---

[API](https://skmtc.net/opal/apis/opal-api.md) · [All operations](https://skmtc.net/opal/apis/opal-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/opal/opal-api/revisions/e818180bddc7/schema)
