Change what someone can do
assign_member_role
Puts an existing member on a different role, which changes what they can do across the whole workspace.
Scopemembers:writeMakes changes
It needs the Manage roles permission (roles.manage), and managing roles at all needs the workspace on Pro or Enterprise, otherwise it is refused with You must upgrade to the Pro plan to manage roles! The new role applies straight away.
The owner role cannot be given out and the owner's own role cannot be changed, so ownership never moves this way. A custom role's id comes back from create_workspace_role, and list_workspace_members shows it as the Role of everyone who holds it. See Members and roles.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
workspaceId |
string | Yes | The workspace id. |
memberId |
string | Yes | The member id, from list_workspace_members. |
role |
string | Yes | The role to put them on: a custom role's id, or member for the stock Member role. owner is refused. |