Semaphor

Security Assignments

Bind security definitions to users and tenants

Security assignments bind a definition to a specific actor and supply the concrete parameter values for that actor. For example, a single "tenant isolation" definition can be assigned to each tenant with a different tenant_id value.

Assignment scopes determine who the policy applies to:

Scope typeApplies to
ALL_TENANTSEvery tenant in the project
TENANTA specific tenant
TENANT_USERA specific tenant user
ORG_USERA specific organization user

Endpoints

MethodEndpointDescription
GETList assignmentsList all assignments in a project
POSTCreate an assignmentBind a definition to an actor
GETGet an assignmentRetrieve a single assignment
PATCHUpdate an assignmentUpdate scope, actor, or parameters
DELETEDelete an assignmentRemove the binding between a definition and an actor

On this page