Connectors
...
Actions
Update User
5 min
description updates a user's properties in microsoft graph api using the specified 'user id' and provided json body data endpoint url /v1 0/users/{{user id}} method patch inputs path parameters (object) – required user id (string) – required json body (object) – required aboutme (string) a freeform text entry field for the user to describe themselves accountenabled (boolean) true if the account is enabled; otherwise, false agegroup (string) sets the age group of the user birthday (string) the birthday of the user businessphones (array) the telephone numbers for the user city (string) the city in which the user is located companyname (string) the name of the company that the user is associated consentprovidedforminor (string) sets whether consent has been obtained for minors country (string) the country/region in which the user is located customsecurityattributes (object) an open complex type that holds the value of a custom security attribute that is assigned to a directory object @odata type (string) department (string) the name for the department in which the user works displayname (string) the name displayed in the address book for the user employeeid (string) the employee identifier assigned to the user by the organization employeetype (string) captures enterprise worker type givenname (string) the given name (first name) of the user employeehiredate (string) the hire date of the user the timestamp type represents date and time information using iso 8601 format and is always in utc time employeeleavedatetime (string) the date and time when the user left or will leave the organization the timestamp type represents date and time information using iso 8601 format and is always in utc time employeeorgdata (object) represents organization data (for example, division and costcenter) associated with a user costcenter (string) the cost center associated with the user division (string) the name of the division in which the user works interests (array) a list for the user to describe their interests jobtitle (string) the user's job title mail (string) the smtp address for the user, mailnickname (string) the mail alias for the user mobilephone (string) the primary cellular telephone number for the user mysite (string) the url for the user's personal site officelocation (string) the office location in the user's place of business onpremisesextensionattributes (object) extensionattribute1 (string) first customizable extension attribute extensionattribute2 (string) second customizable extension attribute extensionattribute3 (string) third customizable extension attribute extensionattribute4 (string) fourth customizable extension attribute extensionattribute5 (string) fifth customizable extension attribute extensionattribute6 (string) sixth customizable extension attribute extensionattribute7 (string) seventh customizable extension attribute extensionattribute8 (string) eighth customizable extension attribute extensionattribute9 (string) ninth customizable extension attribute extensionattribute10 (string) tenth customizable extension attribute extensionattribute11 (string) eleventh customizable extension attribute extensionattribute12 (string) twelfth customizable extension attribute extensionattribute13 (string) thirteenth customizable extension attribute extensionattribute14 (string) fourteenth customizable extension attribute extensionattribute15 (string) fifteenth customizable extension attribute onpremisesimmutableid (string) this property is used to associate an on premises active directory user account to their microsoft entra user object othermails (array) a list of additional email addresses for the user passwordpolicies (string) specifies password policies for the user passwordprofile (object) specifies the password profile for the user the profile contains the user's password forcechangepasswordnextsignin (boolean) true if the user must change their password on the next sign in; otherwise false forcechangepasswordnextsigninwithmfa (boolean) if true, at next sign in, the user must perform a multifactor authentication (mfa) before being forced to change their password password (string) the password for the user pastprojects (array) a list for the user to enumerate their past projects postalcode (string) the postal code for the user's postal address preferredlanguage (string) the preferred language for the user should follow iso 639 1 code responsibilities (array) a list for the user to enumerate their responsibilities schools (array) a list for the user to enumerate the schools they attended skills (array) a list for the user to enumerate their skills state (string) the state or province in the user's address streetaddress (string) the street address of the user's place of business surname (string) the user's surname (family name or last name) usagelocation (string) a two letter country code (iso standard 3166) userprincipalname (string) the user principal name (upn) of the user the upn is an internet style sign in name for the user based on the internet standard rfc 822 usertype (string) a string value that can be used to classify user types in your directory output example \[ { "status code" 204, "response headers" { "cache control" "no cache", "strict transport security" "max age=31536000", "request id" "38dd3b1c ff86 4da9 9647 bdcde1a611c8", "client request id" "38dd3b1c ff86 4da9 9647 bdcde1a611c8", "x ms ags diagnostic" "{\\"serverinfo\\" {\\"datacenter\\" \\"central india\\",\\"slice\\" \\"e\\",\\"ring\\" \\"3\\",\\"scaleunit\\" \\"000\\",\\"roleinstance\\" \\"pn1pepf00007040\\"}}", "x ms resource unit" "1", "date" "tue, 28 may 2024 10 09 05 gmt" }, "reason" "no content", "response text" "" } ] output parameters status code (number) reason (string) response text (string) response headers header type cache control string strict transport security string request id string client request id string x ms ags diagnostic string x ms resource unit string date string