Skip to main content
GET
/
repos
/
{repo_id}
/
granular-permissions
List granular permissions
curl --request GET \
  --url https://api.diversion.dev/v0/repos/{repo_id}/granular-permissions \
  --header 'Authorization: Bearer <token>'
{
  "items": [
    {
      "id": "<string>",
      "repo_id": "<string>",
      "path_pattern": "<string>",
      "access_level": "ADMIN",
      "permission_type": "ALLOW_LT_EQ",
      "evaluation_order": 123,
      "created_unix": 123,
      "updated_unix": 123,
      "created_by": "<string>",
      "last_updated_by": "<string>",
      "user_id": "<string>",
      "group_id": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

This API uses OAuth 2 with the implicit grant flow

Path Parameters

repo_id
string
required

The repo ID of the repository. Repo name can be used instead of the ID, but usage of ID for permanent linking and API requests is preferred.

Required string length: 3 - 128
Example:

"example_id"

Query Parameters

user_id
string

Filter by user ID

group_id
string

Filter by group ID

Response

A list of granular permission objects

items
object[]
required