Search code examples
google-classroom

Manage Guardians of Classroom Api .


I am using manage guardians of classroom api and I am getting error : AttributeError: 'Resource' object has no attribute 'userProfiles'

  invitations = self.service.userProfiles().guardianInvitations().list(studentId='esha.dammalapati@somedomain.com').execute()

Solution

  • Just to close this issue. Make sure you're using a valid e-mail address because that's where userProfile refers to.

    You can check if you're using a valid email address in userProfiles.get Try-it.