capabilities.work

Reset a User Password

A 3-step recipe with Google Workspace. We can help you get access.

Recipe · 3 steps

Reset a User Password

with Google Workspace · Identity & Access Management

Set a temporary password for a user and revoke their existing sessions.

  1. Confirm the user exists and capture its id before changing the password.
  2. Patch the user with the new temporary password and force a password change at the next login.
  3. Sign the user out of all active sessions so the previous password can no longer be used.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token with the admin.directory.user scope.
  • userKey: Primary email, alias, or unique id of the user to reset.
  • newPassword: The new temporary password, 8-100 ASCII characters.
For your developer

Arazzo workflow google-workspace:reset-user-password, 3 operations: getUser → patchUser → signOutUser. Specs on APIs.io.