Obsolete
Status Update
Comments
bl...@google.com <bl...@google.com> #2
Metadata
- Summary: The Directory API's users.list method is inconsistently returning a nextPageToken when using the query parameter, and the starts with operator is not working for the orgDepartment field.
- Tags:
,directory-api ,users-list ,next-page-token ,query-parameter ,org-department starts-with-operator
Additional resources:
https://issuetracker.google.com/savedsearches/566232?hl=it https://developers.google.com/drive/api/reference/rest/v3/files/list https://developers.google.com/admin-sdk/directory/v1/.../manage-users https://developers.google.com/admin-sdk/directory/reference/rest/v1/.../list https://stackoverflow.com/.../want-admindirectory-users-list-more-then-500... https://stackoverflow.com/.../drive-list-files-doesnt-have-nextpagetoken-wh... https://stackoverflow.com/.../how-to-resolve-the-missing-information-probl...
no...@fulltime.com.br <no...@fulltime.com.br> #3
Automated by Blunderbuss job workspace-devrel-public-issue-tracker-blunderbuss-autoassigner for config assign for component 191635.
Description
Description
Hi, i'm using google API's in an project. We have domain-wide-delegation and works using google calendar api to create events, works perfect.
Now we need use to Admin SDK Reports API Audit Events Meet to analyze schedule meetings, so i request to my manager account add the scope: "https://www.googleapis.com/auth/admin.reports.audit.readonly " in my service account.
But when i try request, i have 401 error.
Code
Code of Client Connection:
import { google } from 'googleapis' import credentials from '../../credentials.json'
export const googleClient = new google.auth.JWT( credentials.client_email, undefined, credentials.private_key, [ 'https://www.googleapis.com/auth/admin.reports.audit.readonly', 'https://www.googleapis.com/auth/calendar', ], "sample@gmail.com "
)
Code of request:
await googleClient.authorize();
const service = google.admin({ version: 'reports_v1', auth: googleClient })
const events = await service.activities.list({ userKey: 'all', applicationName: 'login', maxResults: 10, })
const data = events.data.items
Output
I have throw error with message: "Access denied. You are not authorized to read activity records."
I don't now how to fix it, the permissions already granted...
Can you help me?