I’m currently trying to add a social login using G...
# ory-network
q
I’m currently trying to add a social login using Google. One of the requirements is to fetch all the groups that a user is a member of. I have tried the following scopes,
<https://www.googleapis.com/auth/admin.directory.group.member.readonly>
,
<https://www.googleapis.com/auth/groups>
. However, the groups list does not show up in
claims
. Has anyone run into this issue? Thanks!
For context, Dex IDP requires a service account with the scope
<https://www.googleapis.com/auth/admin.directory.group.member.readonly>
f
Hey, hmm, looks like this is part of admin API on gsuite, have you checked if for this app you have enabled this Admin API?
q
Yes, I see that the Admin SDK API is enabled for this app on Google Console. Is there any of seeing all the information that the idp provides?
r
You may have to enable the service account on the workspace admin as well. I just did that the other week and made screenshots.
It‘s called domain wide delegation, in the advanced settings on the service account (bottom on the details). It's very confusing. 😆
When you click that you have to enable the scopes again so it can access other accounts.