I'm building an app that uses GSuite users' tokens to retrieve their events. I currently do not have an admin token, only have the credentials of several users in the organization.
I retrieve the events using the API of events.list. If there's a group invited to that event, I only get that group email as an attendee and not the entire members of this group as attendees.
Is there a way to know (without admin credentials):
- how many members are included in that group.
- See the member's emails.
- Only get the above information about the groups the current user is part of.
*Will the answer to the above question change if those groups are public (within the organization), which means everyone in that GSuite organization can see the members of those groups?
*I am aware I can use the Admin SDK if I have admin credentials.
*I want to avoid using a service account.
*The last question I found about this was asked in 2015.
Thanks!
Edit: I just learned it's possible to retrieve information about the users in the organization using a non-admin user - https://developers.google.com/admin-sdk/directory/v1/guides/manage-users#retrieve_users_non_admin