Infomaniak Kchat icon

Infomaniak Kchat

Interact with Infomaniak Kchat API

Actions173

Users → Update A User's Roles

AI-generated

Summary

Updates the roles of a specified user in an Infomaniak Kchat team.

Inputs

  • authentication — Authentication method to use for the Infomaniak Kchat API request. Defaults to OAuth2 if not specified. Choose between OAuth2 or API Key.
  • teamName (required) — Your kChat team name (the subdomain in https://.kchat.infomaniak.com). This is a required parameter with no default value.
  • path_user_id (required) — User GUID. The unique identifier of the user whose roles are being updated. This is a required parameter with no default value.
  • body_roles (required) — The roles to assign to the user. Provided as a string, typically representing role names or IDs depending on the Kchat API conventions.
  • returnFullResponse — If set to true, the full API response is returned instead of the extracted user data. Defaults to false.

Output shape

User data reflecting the updated roles. When returnFullResponse is enabled, the complete API response payload is returned.

The operation sends a role update request to the Infomaniak Kchat service for the specified team and user GUID. Success or failure is determined by the underlying API response.

Links

Discussion