Skip to main content
POST
/
permissions
/
{permissionId}
/
assignments
Assign Permission
curl --request POST \
  --url https://api.dfns.io/permissions/{permissionId}/assignments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-DFNS-USERACTION: <api-key>' \
  --data '{
  "identityId": "<string>"
}'
{
  "id": "<string>",
  "permissionId": "<string>",
  "identityId": "<string>",
  "isImmutable": true,
  "dateCreated": "<string>",
  "dateUpdated": "<string>"
}

Authentication

✅ Organization User (CustomerEmployee)
✅ Delegated User (EndUser)
✅ Service Account

Required Permissions

Permissions:Assign: Always required.

Authorizations

Authorization
string
header
required

Bearer Token: Used to authenticate API requests. More details how to generate the token: Authentication flows

X-DFNS-USERACTION
string
header
required

User Action Signature: Used to sign the change-inducing API requests. More details how to generate the token: User Action Signing flows

Path Parameters

permissionId
string
required
Minimum length: 1

Body

application/json
identityId
string
required
Minimum length: 1

Response

200 - application/json

Success

id
string
required
permissionId
string
required
identityId
string
required
isImmutable
boolean
required
dateCreated
string
required
dateUpdated
string
required
I