How to obtain a list of user IDs via Users API
Stay organized with collections
Save and categorize content based on your preferences.
Problem
How to obtain a list of user IDs via User List API.
Environment
Solution
- Navigate to the Admin SDK Directory API
- Method: users.list
- Locate the field showDeleted and replace true with false
- Fill in either the customer or domain field
- Scroll down and click on Execute.
- Allow access to the super admin user account in order to authorize the tool to run.
- 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.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-10-02 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]