Assign Permission
Assigns a permission (role) to an identity (user, PAT or service account), granting it access to the operations defined in the permission. Returns the assignment on success (200), or a pending change request if approval is required (202).
Documentation Index
Fetch the complete documentation index at: https://docs.dfns.co/llms.txt
Use this file to discover all available pages before exploring further.
Authentication
✅ Organization User (CustomerEmployee)✅ Delegated User (
EndUser)✅ Service Account
Required Permissions
Permissions:Assign: Always required.Authorizations
Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows
User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows
Path Parameters
ID of the permission (also referred to as "role" in the dashboard).
1 - 64Body
ID of the identity to assign the permission to. Can be a user ID, a service account ID, or a personal access token (PAT) ID.
1Response
Success
ID of the permission assignment.
1 - 64^as-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"as-1vcmc-qrek0-6b4vii9pln60907e"
ID of the permission (also referred to as "role" in the dashboard).
1 - 64^pm-[a-z0-9]{5}-[a-z0-9]{5}-[a-z0-9]{14,16}$"pm-37vj4-jkr4l-lc9945spfftkne57"
ID of the identity the permission is assigned to. Can be a user ID, a service account ID, or a personal access token (PAT) ID.
Whether this assignment is system-managed and cannot be modified.
