Grant a person account-wide access

Needs permission user:write.

Afterwards they reach every organisation the account owns, including ones added later, whatever their organisationIds list says. Idempotent. The body is optional: roleId sets their role across the account; leave it out to keep it, or to give them your account's default role. 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.

Only somebody who already holds account-wide access may grant it — 403 whole_customer_access_denied otherwise. Handing out every organisation, present and future, is granting wider than you hold, so an administrator of three organisations cannot make somebody who reaches forty. This is a higher bar than PUT /users/{principalId}/organisations/{organisationId}, which needs only the one organisation.

Their direct grants are left exactly as they were, so removing account-wide access later returns them to that set rather than to nothing.

A guest cannot hold account-wide access: they belong to another business, so grant them organisations individually instead.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
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