Open sosnovsky opened 6 months ago
Currently when app performs contact search, it searches only in user contacts (contacts and contacts.other scopes), but when user is a member of Google Workspace it's also possible to search across all workspace members.
contacts
contacts.other
It requires additional authorization scope - https://www.googleapis.com/auth/admin.directory.user.readonly and using https://developers.google.com/people/api/rest/v1/people/searchDirectoryPeople API for searching workspace users.
This functionality is needed only for users who are members of Google Workspace, seems like we can check that in hd claim of user's id token - https://developers.google.com/identity/openid-connect/openid-connect#hd-param
hd
Currently when app performs contact search, it searches only in user contacts (
contacts
andcontacts.other
scopes), but when user is a member of Google Workspace it's also possible to search across all workspace members.It requires additional authorization scope - https://www.googleapis.com/auth/admin.directory.user.readonly and using https://developers.google.com/people/api/rest/v1/people/searchDirectoryPeople API for searching workspace users.
This functionality is needed only for users who are members of Google Workspace, seems like we can check that in
hd
claim of user's id token - https://developers.google.com/identity/openid-connect/openid-connect#hd-param