How to obtain a list of user IDs via Users API

Problem

How to obtain a list of user IDs via User List API.

Environment

  • Admin SDK Directory

Solution

  1. Navigate to the Admin SDK Directory API
  2. Method: users.list
  3. Locate the field showDeleted and replace true with false
  4. Fill in either the customer or domain field
  5. Scroll down and click on Execute.
  6. Allow access to the super admin user account in order to authorize the tool to run. 
  7. If properly done, on the lower right a green bar with a 200 on top will appear, and the list of user's ID will be found below

    Example:

    id": "110111230781627631654",
          "primaryEmail": "user@exampledomain.com"
    

Cause

How to obtain a list of user IDs for API usage purposes.