---
title: "List Set Permissions"
method: GET
path: "/v2/facts/{proj_id}/{env_id}/set_rules"
tags: ["Condition Set Rules"]
---

# List Set Permissions

`GET /v2/facts/{proj_id}/{env_id}/set_rules`

Lists the condition set rules matching the filter.
- If the `user_set` filter is present, will only return the permissions set of that user set.
- If the `permission` filter is present, will only return the permissions sets that equals to the queried permission.
- If the `resource_set` filter is present, will only return the permissions set of that resource set.

## Path parameters

- `proj_id` string, required — Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug").
- `env_id` string, required — Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug").

## Query parameters

- `user_set` string — optional user set filter, will only return rules where the permission is granted to this user set
- `permission` string — optional permission filter, will only return condition set rules granting this permission
- `resource_set` string — optional resource set filter, will only return rules where the permission is granted on this resource set
- `page` integer — Page number of the results to fetch, starting at 1.
- `per_page` integer — The number of results per page (max 100).

## Response `200`

Successful Response

- ConditionSetRuleRead[]
  - `id` string, uuid, required — Unique id of the condition set rule
  - `key` string, required — A unique id by which Permit will identify this condition set rule.
  - `user_set` string, required — the userset that is currently granted permissions, i.e: all the users matching this rule are granted the permission on the resourceset
  - `permission` string, required — a permission that is currently granted to the userset *on* the resourceset.
  - `resource_set` string, required — the resourceset that represents the resources that are currently granted for access, i.e: all the resources matching this rule can be accessed by the userset to perform the granted *permission*
  - `organization_id` string, uuid, required — Unique id of the organization that the condition set rule belongs to.
  - `project_id` string, uuid, required — Unique id of the project that the condition set rule belongs to.
  - `environment_id` string, uuid, required — Unique id of the environment that the condition set rule belongs to.
  - `created_at` string, date-time, required — Date and time when the condition set rule was created (ISO_8601 format).
  - `updated_at` string, date-time, required — Date and time when the condition set rule was last updated/modified (ISO_8601 format).

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/permit/apis/permit-io-api.md) · [All operations](https://skmtc.dev/permit/apis/permit-io-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/permit/permit-io-api/revisions/0235743bf8a2/schema)
