Semaphor

Security Assignments

Bind security definitions to users and tenants

Security assignments bind a definition to a specific actor, and can supply the parameter values that assignments own. An assignment turns the definition on for the actor it names.

Assignment scopes determine who the policy applies to:

Scope typeApplies to
ALL_TENANTSEvery tenant and tenant user on the connection
TENANTOne tenant
TENANT_USEROne tenant user
ORG_USEROne organization user

ALL_TENANTS is optional. Use it when a policy should reach every customer, and skip it when only some customers should receive it. See How Row-Level Security Works for value sources and precedence.

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
POSTValidate a new assignmentValidate a create candidate without saving
POSTValidate an assignment updateValidate an update candidate without saving

On this page