# PATCH /company/users/:userId/workspace-user-roles

**Resource:** [Company](./company.md)  
**Scopes:** `users:write`  
**Write operation:** yes

Change a team member's workspace role. Valid values: client_admin (full access), client_editor (edit access), client_viewer (read-only).

## Parameters

| Name | In | Type | Required | Description |
|------|----|------|----------|-------------|
| `userId` | path | uuid | yes | User ID |
| `role` | body | string | yes | New role: client_admin, client_editor, or client_viewer |

---
Base URL: `https://api.trustpager.com/functions/v1/api/v1` — Auth: `Authorization: Bearer YOUR_API_KEY`