Manage custom role users
manage_permission_group_usersAdd or remove users from a custom role. Requires organization admin access and explicit confirmation.
Instructions
This endpoint allows organization administrators to add or remove users from a custom role (formerly "permission group"). Adding a user to a role does not remove them from any other role they belong to. Explicit confirmation is required for this exact account operation. Runs can spend credits or trigger downstream actions; never resubmit unknown outcomes automatically.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| action | No | The action to perform - either 'add' or 'remove' a user. | |
| account | No | Named private Gumloop account; selects private credentials and user/team identity. | |
| confirm | No | Set true only when the user asked for exactly this action. | |
| payload | No | Complete JSON request body instead of body flags. Preserves current endpoint fields and values. | |
| user_id | No | Your user id -- you must be an organization admin to manage custom role users. | |
| group_id | No | The ID of the custom role to manage users for. | |
| user_email | No | The email address of the target user to add or remove. | |
| payload_file | No | Regular local JSON body file, at most 5 MB. Cannot be mixed with body flags or payload. | |
| organization_id | No | The ID of the organization that the custom role belongs to. |