Skip to content

Commit 30d94e2

Browse files
committed
add email to UserManagement.updateUser
1 parent 0f29f1e commit 30d94e2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

lib/UserManagement.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)