You do not have permission to call getContacts
问题 I'm developing the GMail Add-on that pulls out all user's contacts to card: var contacts = ContactsApp.getContacts(); I already enabled ContactsAPI in Google API Console and added scope: https://www.googleapis.com/auth/contacts.readonly But the error is still there and the Contacts API is missing in the project's Advanced Google Service pop-up. 回答1: Through trial and error, and this hard-to-find list I managed to get ContactsApp.getContacts() to work. You need to add this scope: "oauthScopes"