I am currently trying to make a google workspace Add-on. The Addon will have a feature to browse a list of users using AdminDirectorySDK.
let page = AdminDirectory.Users?.list({
query: query,
domain: "gmail.com", //what domain to use for testing?
maxResults: 100,
projection: "full",
viewType: "domain_public",
});
I want to query users by domain. Do I need a google admin account to use this feature? From what I understand, you need a domain tied to good workspace account to be able to query users.
Can I somehow test this feature using a basic gmail account? I mean I don't currently own such google account so was hoping if I could avoid setting up a domain just to test this use case.
Also query = 'myemail@gmail.com'