File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ public function getUserByExternalId($externalId)
111111 * @param string|null $passwordHashType The algorithm originally used to hash the password. Valid values are `bcrypt`, `ssha`, and `firebase-scrypt`.
112112 * @param string|null $externalId The user's external ID.
113113 * @param array<string, string>|null $metadata The user's metadata.
114+ * @param string|null $email The email address of the user.
114115 *
115116 * @throws Exception\WorkOSException
116117 *
@@ -125,11 +126,13 @@ public function updateUser(
125126 $ passwordHash = null ,
126127 $ passwordHashType = null ,
127128 $ externalId = null ,
128- $ metadata = null
129+ $ metadata = null ,
130+ $ email = null
129131 ) {
130132 $ path = "user_management/users/ {$ userId }" ;
131133
132134 $ params = [
135+ "email " => $ email ,
133136 "first_name " => $ firstName ,
134137 "last_name " => $ lastName ,
135138 "email_verified " => $ emailVerified ,
You can’t perform that action at this time.
0 commit comments