set-user-role
Assign a WordPress user a new role to update their permissions. Provide the user ID and desired role; optionally remove existing roles.
Instructions
Change a WordPress user's role and permissions
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| role | Yes | New role to assign (e.g., 'administrator', 'editor', 'author', 'contributor', 'subscriber') | |
| userId | Yes | ID of the user | |
| removeOtherRoles | No | Remove other roles when setting new role |