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.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
