Search Users

Search for a user in Google Workspace.

Options

Field Definition Type Required
Return

First matching user: first user record to match search criteria

All matching users: all user records that match search criteria

Dropdown TRUE

Input

Field Definition Type Required
Search By
Name Name of the user String FALSE
Email Email address of the user String FALSE
First Name User's first name String FALSE
Last Name User's last name String FALSE
Is Admin? Indicates whether the user has super administrator privileges (this field can only be edited in the Make User Admin action) Boolean FALSE
Is Suspended? Indicates whether the user is suspended Boolean FALSE
IM Network ID User's IM accounts (user may have multiple IM accounts, but only one primary) String FALSE
External ID Value of the ID String FALSE
Manager Email Email address of the user's manager String FALSE
Manager ID Unique identifier of the user's manager String FALSE
Direct Manager Email Email address of the user's direct manager String FALSE
Direct Manager ID Unique identifier of the user's direct manager String FALSE
Address User's address String FALSE
Address Street Street portion of the user's address String FALSE
Address PO Box User's post office box String FALSE
Address City User's city of residence String FALSE
Address Region User's geographic region String FALSE
Address Postal Code Zip or postal code of the user's address String FALSE
Address Country User's country of residence String FALSE
Organization Name Name of the organization String FALSE
Organization Department Department in the organization that the user is associated with (for example, sales or engineering) String FALSE
Organization Description Description of the organization String FALSE
Organization Cost Center Cost center of the organization String FALSE
Phone Phone number of the organization String FALSE
Parent Organization Path Full path of the parent organization associated with the user (if the parent organization is the top-level, it is represented as a forward slash) String FALSE
Is Enrolled in 2SV? Indicates whether a user is enrolled in 2-step verification String FALSE
Is Enforced in 2SV? Indicates whether two-step verification is enforced for a user String FALSE
Custom Schema Name Custom schema for the user String FALSE
Custom Field Name Custom fields for the user String FALSE

Output

Field Definition Type
Users
First Name User's first name String
Last Name User's last name String
Notes Notes for the user String
Is Admin? Indicates whether the user has super administrator privileges (this field can only be edited in the Make a User an Administrator action) Boolean
Is Delegated Admin? Indicates whether the user is a delegated administrator. Delegated administrators are supported by the API but cannot create or undelete users, or make users administrators. These requests are ignored by the API service. Roles and privileges for administrators are assigned using the Admin console. Boolean
Change Password At Next Login? Indicates whether a user is forced to change their password at next login (does not apply when SSO is configured with a third party identity provider) Boolean
Agreed to Terms? Indicates whether a user has completed an initial login and accepted the Terms of Service agreement Boolean
IP Allow Listed? Indicates whether a user's IP address is allow listed Boolean
Suspended? Indicates whether a user is suspended Boolean
Suspension Reason Reason that the user is suspended by either the administrator or by Google at the time of suspension; options are ABUSE, ADMIN, UNDER13, or WEB_LOGIN_REQUIRED String
Parent Organization Path Full path of the parent organization associated with the user (if the parent organization is the top-level, it is represented as a forward slash) String
Customer ID Customer ID to retrieve all account users. String
Is Enrolled in 2SV? Indicates whether a user enrolled in 2-step verification Boolean
Is Enforced in 2SV? Indicates whether a user is 2-step verification enforced Boolean
Is Mailbox Setup? Indicates whether a user's Google mailbox is created Boolean
Custom Fields All fields from a custom schema for a user String
IMs
IM Network ID User's IM accounts (user may have multiple IM accounts but only one primary) String
Type

IM account type:

  • home

  • work

  • custom

  • other

String
Custom Type required, user defined value if IM type is custom String
Protocol IM network (custom network or standard network) String
Custom Protocol required, user defined value if the protocol is custom String
Primary? indicator if this is the user's primary IM Boolean
Emails
Email Address email address of the user String

Type

Email account type:

  • home

  • work

  • custom

  • other

Dropdown
Custom Type Required, user defined value if email address type selection is custom String
Primary? Indicates whether this is the user's primary email address Boolean
External IDs
Extenal ID value of the ID String
Type

Type of external ID:

  • account

  • custom

  • customer

  • login_ID

  • network

  • organization

String
Custom Type Required, user defined value if address type selection is custom String
Relations
Relation Name name of the person the user is related to String
Type

Type of relation:

  • admin_assistant

  • assistant

  • brother

  • child

  • custom

  • domestic_partner

  • dotted_line_manager

  • exec_assistant

  • father

  • friend

  • manager

  • mother

  • parent

  • partner

  • referredy_by

  • relative

  • sister

  • spouse

String
Custom Type Required, user defined value if type is custom String
Addresses
Street Street portion of the user’s address String
PO Box User’s post office box String
City User’s city of residence String
Region User’s geographic region String
Country User's country of residence String
Country Code Telephone prefix for user's country of residence (ISO 3166-1 standard) String
Extended Address Extended fields for addresses that includes a sub-region String
Formatted Address Formatted version of the address String

Type

Type of address:

  • home
  • work
  • custom
  • other
Dropdown
Custom Type Required, user defined value if address type selection is custom String
Primary? Indicates whether this is the user's primary address Boolean
Organizations
Organization Name Name of the organization String
Description Description of the organization String
Department Department in the organization that the user is associated with (for example, sales or engineering) String
Job Title User's title in the organization (for example, member or engineer) String
Location Physical location of the organization (this is not required to be an address) String
Symbol Text string symbol of the organization (for example, Google's symbol is GOOG) String
Cost Center Cost center of the user's organization String
Domain Domain that the organization belongs to String
Type Type of organization String
Custom Type Required, user defined value if address type selection is custom String
Primary? Indicates whether this is the user's primary organization Boolean
Phones
Phone Number Human-readable phone number (any telephone number format) String
Type

Type of phone number:

  • assistant
  • callback
  • car
  • company_main
  • custom
  • grand_central
  • home
  • home_fax
  • isdn
  • main
  • mobile
  • other
  • other_fax
  • pager
  • radio
  • telex
  • tty_ttd
  • work
  • work_fax
  • work_mobile
  • work_pager
String
Custom Type Required, user defined value if the type is custom String
Primary? Indicates whether this is the user's primary phone number Boolean
Websites
Website URL URL of the website String
Type

Type or purpose of the website:

  • app_install_page
  • blog
  • custom
  • ftp
  • home
  • home_page
  • other
  • profile
  • reservations
  • resume
  • work
String
Custom Type Required, user defined value if website type is custom String
Primary? Indicates whether this is the user's primary website Boolean

Related topics

Google Workspace Admin connector

About the elements of Okta Workflows

Google Workspace API documentation