View source: R/generated_client.R
| users_patch | R Documentation | 
Update info about a user (must be a team or org admin)
users_patch(
  id,
  name = NULL,
  email = NULL,
  active = NULL,
  primary_group_id = NULL,
  city = NULL,
  state = NULL,
  time_zone = NULL,
  initials = NULL,
  department = NULL,
  title = NULL,
  prefers_sms_otp = NULL,
  group_ids = NULL,
  vpn_enabled = NULL,
  sso_disabled = NULL,
  otp_required_for_login = NULL,
  exempt_from_org_sms_otp_disabled = NULL,
  robot = NULL,
  phone = NULL,
  password = NULL,
  account_status = NULL
)
| id | integer required. The ID of this user. | 
| name | string optional. The name of this user. | 
| email | string optional. The email of this user. | 
| active | boolean optional. Whether this user account is active or deactivated. | 
| primary_group_id | integer optional. The ID of the primary group of this user. | 
| city | string optional. The city of this user. | 
| state | string optional. The state of this user. | 
| time_zone | string optional. The time zone of this user. | 
| initials | string optional. The initials of this user. | 
| department | string optional. The department of this user. | 
| title | string optional. The title of this user. | 
| prefers_sms_otp | boolean optional. The preference for phone authorization of this user | 
| group_ids | array optional. An array of ids of all the groups this user is in. | 
| vpn_enabled | boolean optional. The availability of vpn for this user. | 
| sso_disabled | boolean optional. The availability of SSO for this user. | 
| otp_required_for_login | boolean optional. The two factor authentication requirement for this user. | 
| exempt_from_org_sms_otp_disabled | boolean optional. Whether the user has SMS OTP enabled on an individual level. This field does not matter if the org does not have SMS OTP disabled. | 
| robot | boolean optional. Whether the user is a robot. | 
| phone | string optional. The phone number of this user. | 
| password | string optional. The password of this user. | 
| account_status | string optional. Account status of this user. One of: "Active", "Deactivated", "Suspended", "Unsuspended" | 
A list containing the following elements:
| id | integer, The ID of this user. | 
| user | string, The username of this user. | 
| name | string, The name of this user. | 
| email | string, The email of this user. | 
| active | boolean, Whether this user account is active or deactivated. | 
| primaryGroupId | integer, The ID of the primary group of this user. | 
| groups | array, An array containing the following fields: 
 | 
| city | string, The city of this user. | 
| state | string, The state of this user. | 
| timeZone | string, The time zone of this user. | 
| initials | string, The initials of this user. | 
| department | string, The department of this user. | 
| title | string, The title of this user. | 
| githubUsername | string, The GitHub username of this user. | 
| prefersSmsOtp | boolean, The preference for phone authorization of this user | 
| vpnEnabled | boolean, The availability of vpn for this user. | 
| ssoDisabled | boolean, The availability of SSO for this user. | 
| otpRequiredForLogin | boolean, The two factor authentication requirement for this user. | 
| exemptFromOrgSmsOtpDisabled | boolean, Whether the user has SMS OTP enabled on an individual level. This field does not matter if the org does not have SMS OTP disabled. | 
| smsOtpAllowed | boolean, Whether the user is allowed to receive two factor authentication codes via SMS. | 
| robot | boolean, Whether the user is a robot. | 
| phone | string, The phone number of this user. | 
| organizationSlug | string, The slug of the organization the user belongs to. | 
| organizationSSODisableCapable | boolean, The user's organization's ability to disable sso for their users. | 
| organizationLoginType | string, The user's organization's login type. | 
| organizationSmsOtpDisabled | boolean, Whether the user's organization has SMS OTP disabled. | 
| myPermissionLevel | string, Your permission level on the object. One of "read", "write", or "manage". | 
| createdAt | string, The date and time when the user was created. | 
| updatedAt | string, The date and time when the user was last updated. | 
| lastSeenAt | string, The date and time when the user last visited Platform. | 
| suspended | boolean, Whether the user is suspended due to inactivity. | 
| createdById | integer, The ID of the user who created this user. | 
| lastUpdatedById | integer, The ID of the user who last updated this user. | 
| unconfirmedEmail | string, The new email address awaiting confirmation from the user. | 
| accountStatus | string, Account status of this user. One of: "Active", "Deactivated", "Suspended", "Unsuspended" | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.