Returns a user profile
gc_user_profiles_get(userId)
userId | Identifier of the profile to return |
---|
This method returns the following error codes:
PERMISSION_DENIED
if the requesting user is not permitted to accessthis user profile, if no profile exists with the requested ID, or foraccess errors.
Authentication scopes used by this function are:
https://www.googleapis.com/auth/classroom.profile.emails
https://www.googleapis.com/auth/classroom.profile.photos
https://www.googleapis.com/auth/classroom.rosters
https://www.googleapis.com/auth/classroom.rosters.readonly
Set options(googleAuthR.scopes.selected = c("https://www.googleapis.com/auth/classroom.profile.emails", "https://www.googleapis.com/auth/classroom.profile.photos", "https://www.googleapis.com/auth/classroom.rosters", "https://www.googleapis.com/auth/classroom.rosters.readonly")
Then run googleAuthR::gar_auth()
to authenticate.
See gar_auth
for details.