Score:0

Error:- GaxiosError: Not Authorized to access this resource/api

it flag
hhk

I recently deployed my node.js application on app engine and I am getting this error when I try to make calls to the following three Google API's(scopes): 'https://www.googleapis.com/auth/admin.directory.user',
'https://www.googleapis.com/auth/admin.directory.group', 'https://www.googleapis.com/auth/apps.groups.settings'

I am using the googleapis node.js library to do that, like so.

const auth = new google.auth.GoogleAuth({ scopes: [ 'https://www.googleapis.com/auth/admin.directory.user',
'https://www.googleapis.com/auth/admin.directory.group', 'https://www.googleapis.com/auth/apps.groups.settings' ], subject:'admin......' });

const AdminDirectory = google.admin({version: 'directory_v1', auth}); const settings = google.groupssettings({ version: 'v1', auth});

Note:- the service account is the default app eng service account and has also been granted domain wide deleg for those scopes mentioned.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.