MailMasker API
Claude Code
Users and roles

Give an account a role

POST/api/v1/admin/users/:id/roles

Who can use this: Site adminsAs Markdown

The account gets every permission the role carries. Giving site_admin makes it a full site admin. Giving a role the account already has changes nothing. Each grant is recorded in the audit log.

Parameters

NameWhereWhat it is
id required path The account's number, from the account list.e.g. 7
role required body The role's name, as the role list shows it.e.g. auditor

Good to know

  • An unknown account answers 404, and an unknown role 400.