Change what a member can do on a site
set_site_member_access
Gives one workspace member a different role on one site.
Scopemembers:writeMakes changes
This is the dropdown on a member's row of Member access in the site's Settings tab. It needs the Manage members permission (members.manage). The change takes effect right away, and anyone affected who has the site open in the editor is reconnected with their new role.
A site role only narrows what the member's workspace role allows and never adds to it. Your own access and the workspace owner's cannot be changed, and the member must already have joined the workspace. See Roles on a single site.
Inputs
| Input | Type | Required | Description |
|---|---|---|---|
projectId |
string | Yes | The site id. |
memberUserId |
string | Yes | The UserId of the member, from list_site_member_access. |
role |
string | Yes | The site role to give them: editor, content-editor, viewer or no-access. |