lithnet / googleapps-managementagent

Google Workspace Management Agent for MIM 2016
MIT License
12 stars 4 forks source link

Looking to get the givenName and familyName from the users Profile #75

Closed jwelterdps closed 2 years ago

jwelterdps commented 2 years ago

We have a need to retrieve the givenName and familyName that a user enters into their Google Profile.

ryannewington commented 2 years ago

@jwelterdps

Do you know what API this is in, or if you can get this information via GAM tool?

jwelterdps commented 2 years ago

Ryan,

You can get this information using the getBasicProfile() method.

I have looked and I do not see this information using GAM.

Hope this helps

Thanks, John

ryannewington commented 2 years ago

Unfortunately we can only get that when the user signs in as part of the OAuth flow. We aren't signing in any users, so that API isn't accessible to us. I can't see anywhere in the directory API that this information would be stored.

jwelterdps commented 2 years ago

Thanks Ryan

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs.