title: Accessing Guardian info in Google Classroom via Apps Script
body: <p>I'm trying to access Google Classroom Guardian info in a Google Apps Script using the Classroom service. I've added the service and enabled the API in the API console. I can access some data (for example courses) but when I try to get guardian info via <code>Classroom.UserProfiles.Guardians.list(student_id )</code> if fails with a permission error. However, if I add a (dummy) call to <code>Classroom.UserProfiles.GuardianInvitations.create()</code> then the auth screen with the required scopes pops up and the script works thereafter. Is there something I'm missing, or is this a bug in Apps Scripts?</p>