/end-user-role-grantsList End User Roles
Returns all active role grants for project end-users, cursor-paginated.
Each entry is a eur_-prefixed grant record including end_user_id, role, granted_by, and granted_at.
Requires PROJECT_ADMIN authority.
| projectSlug * | path | The project's slug: the path segment after It is unique within the org. |
| HTTP | K9O Code | Description |
|---|---|---|
| 200 | Success | |
| 401 | K9O_SESSION_EXPIRED | Your session has expired; sign in again to continue. |
| 403 | K9O_ACCESS_DENIED | You do not hold the required role to list end-user role grants. |
| data * | object | The project's active end-user role grants. |
| grants * | object[] | The active grants, oldest first: every end user's, or one end user's when Revoked grants are not listed. |
| id * | string | The grant's id ( Use it to revoke the grant. |
| endUserId * | string | The end user who holds the role ( |
| role * | string | The role name. |
| grantedAt * | string <date-time> | When the role was granted. |
| grantedBy * | string | Who granted it: the subject id of the caller that made the grant (an operator's user id, |
| meta * | any | Request metadata: cost, timing and the request and trace ids. |
// const k9o = new K9o({ orgSlug: 'playground', projectSlug: 'storefront', apiKey: 'k9o_…' })
const { data } = await k9o.endUsers.roleGrants.list()Showing example in TypeScript
{
"data": {
"grants": [
{
"id": "string",
"endUserId": "string",
"role": "string",
"grantedAt": "string",
"grantedBy": "string"
}
]
}
}