# Manage user access to groups Create or update user access to groups by adding/removing group access. Creates one policy per user with GROUP_MENTOR_MANAGER role for managing mentor access. Endpoint: POST /api/core/rbac/user-group-access/ Version: 4.84.1-ai-plus Security: PlatformApiKeyAuthentication ## Request fields (application/json): - `platform_key` (string, required) Platform key where the groups exist - `user_id` (integer, required) ID of the user to manage group access for - `groups_to_add` (array) List of group IDs to grant access to - `groups_to_remove` (array) List of group IDs to revoke access from ## Response 200 fields (application/json): - `policy_id` (integer, required) Policy ID - `policy_name` (string, required) Policy name - `groups_with_access` (array, required) Groups with access - `groups_with_access.id` (integer, required) Group ID - `groups_with_access.name` (string, required) Group name - `groups_with_access.description` (string, required) Group description - `groups_with_access.permissions` (array, required) List of permissions user has for this group (e.g., ['read', 'manageMentors']) ## Response 201 fields (application/json): - `policy_id` (integer, required) Policy ID - `policy_name` (string, required) Policy name - `groups_with_access` (array, required) Groups with access - `groups_with_access.id` (integer, required) Group ID - `groups_with_access.name` (string, required) Group name - `groups_with_access.description` (string, required) Group description - `groups_with_access.permissions` (array, required) List of permissions user has for this group (e.g., ['read', 'manageMentors']) ## Response 400 fields ## Response 404 fields ## Response 500 fields