Grant a person one organisation

Needs permission user:write.

Idempotent, and safe to use concurrently: two administrators adding two different organisations both succeed, where two declarative replaces would have one overwrite the other. The body is optional: roleId gives them that role there, replacing the one they had; leave it out to keep their role, or to give them your account's default role on an organisation they did not have. You may change your own access like anybody else's, within what you hold. You need permission to manage people where you give the role (403 access_management_denied), and you can only give a role whose permissions you hold, unless it is your account's default role (403 role_assignment_denied). Locking and unlocking pay runs, submitting to HMRC, getting payment files and approving pension contributions must always be held to be given. While only Administrator can be given out, any other role answers 400 role_not_yet_available. A role you leave out on access they did not have is your account's default role (GET /customer/access-settings), and administrator while only Administrator can be given out. {principalId} may be the bare id or the full USER#… one. Every response lists the role at each place in roles. 404 when the organisation is not yours.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required
string
required
Body Params

The role to give with one grant. The whole body is optional.

string | null

Leave it out to keep the role they already hold there, or, when they had no access there before, to give your
account's default role (GET /customer/access-settings; administrator while your account cannot give
roles yet).

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json