Attach a direct permission to a user
Grant a single permission directly to a business user without replacing their complete direct-permission set, and synchronize the change to the identity provider. The permission is always scoped to your business. Attaching a permission the user already holds has no effect.
Required permissions: user:update.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Path parameters
resource
The resource type of the permission to attach.
action
The action of the permission to attach.
user_id
The ID of the user.
Headers
X-Penny-As-Business
Act on behalf of another business that has granted you access. Requires the business:act_as permission.
Response
The updated user.
BusinessUser
A business user, as shown to clients through the client-facing API.
OR
CardholderUser
A cardholder user, as shown to clients through the client-facing API.
Errors
400
Bad Request Error
401
Unauthorized Error
403
Forbidden Error
404
Not Found Error
422
Unprocessable Entity Error
429
Too Many Requests Error
500
Internal Server Error