Skip to content
Console
Menu

Queues

Workflows

Getting Started

Authentication

KV Store

Organization roles

An Organization Role is an app-defined role of the environment's customer organizations: a key that memberships and invitations name, a…

An Organization Role is an app-defined role of the environment's customer organizations: a key that memberships and invitations name, a display name (meta.display_name), and the app's own permission strings. Roles are app data, not Access policy. owner, admin, and member are built in and need no Organization Role.

Service Sylphx Auth · Resource type auth.sylphx.com/OrganizationRole · Name pattern orgs/{org}/projects/{project}/envs/{env}/organization_roles/{organization_role} · Shape record

#Fields

FieldTypeWhat it is
namestringorgs/{org}/projects/{project}/envs/{env}/organization_roles/{organization_role}; the final segment is the role key memberships name, for example hr_manager.
uidstringorl_<cell><ulid>; never reused. Output only.
metaResourceMetaResource metadata.
permissionsstring[]The app's permission strings <resource>:<action>, for example invoices:read or org:payroll:approve.
auto_assignboolWhether new members and invitations without roles get this role.

#Methods

Every method of the collection, in the registry's order, with the scope it needs. The full request, response and examples are one link away.

MethodCallWhat it does
GETgetGets an organization role.
GETlistLists organization roles.
POSTcreateCreates an organization role.
PATCHupdateUpdates an organization role.
DELETEdeleteDeletes an organization role.

#get

Gets an organization role.

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/organization_roles/organization-role · scope auth:read · effect read · Request, response and examples

#list

Lists organization roles.

GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/organization_roles · scope auth:read · effect read · paginated · Request, response and examples

#create

Creates an organization role.

POST https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/organization_roles · scope auth:write · effect write · Request, response and examples

#update

Updates an organization role.

PATCH https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/organization_roles/organization-role · scope auth:write · effect write · Request, response and examples

#delete

Deletes an organization role.

DELETE https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/organization_roles/organization-role · scope auth:write · effect destructive · Request, response and examples