capabilities.work

Find and Update a User

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

Recipe · 3 steps

Find and Update a User

with Google Workspace · Identity & Access Management

Search for a user and patch their profile when a match is found.

  1. Search the users list with the supplied query, returning at most one candidate match.
  2. Read the matched user's full profile before applying the partial update.
  3. Patch the matched user with the supplied profile fields using patch semantics so unspecified fields are left intact.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token with the admin.directory.user scope.
  • query: User search query, for example "email:jane@example.com".
  • updates: Partial user fields to patch onto the matched record.
  • customer: Customer account id or the my_customer alias.
For your developer

Arazzo workflow google-workspace:find-and-update-user, 3 operations: listUsers → getUser → patchUser. Specs on APIs.io.