OriginService

GET /v1/origin/namespaces/{namespaceSlug}/grants

Lists who has been granted access to an owner: users, groups, and the owning team's built-in admin and member groups. Each grant carries the permission it confers on every repository under the owner. Grants made on individual repositories are not included; see ListRepositoryGrants. Requires the namespace:settings:read scope. Paginated with page_size and page_token; default page size is 30, maximum is 100.

Request

  • Base URL
    https://api.cursor.com
  • Auth
    HTTP bearer

Path parameters

namespaceSlugstring required

Slug of the namespace whose grants to list.

Query parameters

pageSizeinteger

Max grants to return. Defaults to 30 when unset or 0. Values above 100 are clamped to 100.

pageTokenstring

Opaque cursor from a previous response's next_page_token. Empty for the first page. page_size on a follow-up request applies to that page; omit it to keep the previous page size.

Response

OK

nextPageTokenstring

Opaque cursor for the next page; empty when there are no more pages.

Changes

No recorded changes to this operation across all 1 revision of this API.