Skip to content

Who has access to a project, and how

View as Markdown
GET
/v1/projects/{projectId}/access
curl --request GET \
--url 'https://example.com/v1/projects/example/access?limit=25' \
--header 'Authorization: Bearer <token>'

Everyone the authorization store lets into the project (people and service accounts), each with their effective role and every way in: a direct role, a team’s grant, an admin of the project’s org, a tenant admin. For the project’s editors and admins (write): a viewer sees the project, not who else works in it. Emails show to the project’s admins only. Ordered by role (owner first), then name. 501 project-access-unsupported from a runtime without an authorization store.

projectId
required
string

ProjectId — opaque branded string.

limit
integer
default: 25 >= 1 <= 100

1..100. Default 25.

cursor
string

Where the previous page ended: its nextCursor, as it came. A runtime that seals cursors takes one only for the same list, filters and caller, within a day; otherwise 400 bad-input, and the list starts again without it. Absent → first page.

Page of who has access.

Media typeapplication/json
object
data
required
Array<object>

Someone with access to the project, their effective role, and every way in.

object
principal
required

Whom access is held by: a person, or a service account.

object
kind
required
string
Allowed values: user service-account
id
required
string
>= 1 characters
displayName

A person’s name, or a service account’s.

string
primaryEmail

A person’s email: shown to the project’s admins only.

string
role
required

The effective role: the highest any way in gives.

string
Allowed values: owner admin editor runner viewer
via
required

Every way in, the highest role first.

Array
>= 1 items
One of: discriminator: kind

The principal’s own role on the project. joinedAt when a membership stands behind it: only then do the membership routes change or remove it.

object
kind
required
string
Allowed values: direct
role
required

Role on a project, as read. member is only read, on a role given before it was retired: it grants what viewer does, and writes refuse it.

string
Allowed values: viewer runner editor owner admin member
joinedAt
string format: date-time
hasMore
required
boolean
nextCursor
string
Example
{
"data": [
{
"principal": {
"kind": "user"
},
"role": "owner",
"via": [
{
"kind": "direct",
"role": "viewer"
}
]
}
]
}

Missing / malformed / expired / revoked bearer token.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}

No project with that id under this workspace.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}

rate-limit-exceeded with details.limit: "api-requests", on a runtime that sets workspace limits (Kindgi Cloud): this workspace’s limit on API requests a minute is reached, so the request wasn’t run; Retry-After says when to send it again.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}
Retry-After
integer
>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

The runtime has no authorization store (project-access-unsupported).

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}

The database was too busy to answer in time (database-busy), or the authorization store couldn’t be reached (authz-backend-unavailable); Retry-After (whole seconds) says when to try again.

Media typeapplication/json
object
error
required
object
code
required

Stable machine-readable discriminant. Values match domain error codes (see docs/API-ROUTE-CONVENTIONS.md §4.3).

string
message
required
string
details

Optional, kind-specific.

object
key
additional properties
any
requestId
required

Server-assigned request id; also echoed via X-Request-Id header.

string
Examplegenerated
{
"error": {
"code": "example",
"message": "example",
"details": {},
"requestId": "example"
}
}
Retry-After
integer
>= 1

Whole seconds to wait before sending the request again, at least 1. Sent with the codes the answer names as sending it, so it may be absent.

See also