Update User
documentedUpdate user information (profile, credentials, etc.).
POST /api/v1/users.updateUser Managementno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://rocket.chat/api/v1/users.update" \
-X POST \
-H "X-User-Id: {{$auth_user_id}}" \
-H "X-Auth-Token: {{ROCKET_SECRET}}" \
-H "x-2fa-code: {{$twofa_code}}" \
-H "x-2fa-method: {{$twofa_method}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"userId": "{{$target_user_id}}", "data": {"name": "{{$name}}", "email": "{{$email}}", "password": "{{$password}}", "username": "{{$username}}", "active": {{$active}}, "roles": {{$roles}}, "requirePasswordChange": {{$requirePasswordChange}}, "sendWelcomeEmail": {{$sendWelcomeEmail}}, "freeSwitchExtension": "{{$freeSwitchExtension}}", "verified": {{$verified}}, "customFields": {{$customFields}}}}' "}