Questions tagged [google-admin-sdk]

Use for questions about using APIs and services that are part of the Google (G Suite) Admin SDK, platform for developers that write applications to manage G Suite domains, migrate from and integrate with existing IT infrastructure, create users, update settings, audit activity, and more.

About

The Google (G Suite) Admin SDK allows developers to write applications to manage Google Apps domains, migrate from and integrate with existing IT infrastructure, create users, update settings, audit activity, and more.

Use for questions

About APIs and services that are part of the G Suite Admin SDK

Do not use for questions

About general interaction with Google APIs, use instead.

Admin SDK APIs

: Admin Settings API
: Alert Center API
: Directory API
: Domain Shared Contacts API
: Email Audit API
: Enterprise License Manager API
: Groups Migration API
: Groups Settings API
: GSuite Email Audit API
: GSuite Reseller API (former Enterprise Apps Reseller API)
: Reports API

Deprecated APIs

  1. Email Migration API on November 1, 2015
  2. Email Settings API on October 16, 2019
1554 questions
0
votes
1 answer

Google Apps Script - AdminDirectory.Chromeosdevices returns empty recentUsers[0].email when unmanaged users log in

the AdminDirectory.Chromeosdevices API will return and empty value in recentUsers[0].email, if the user accessing the Chromebook is not a member of the managed organisation. Why is that? See the following code: function testDevices() { var…
Riccardo
  • 2,054
  • 6
  • 33
  • 51
0
votes
1 answer

Why does Google Meet Report Audit Logs API not synchronous?

I'm trying to use Google Meet Audit Activity Events API to get the report of the meeting room activities. But as i can see that the result is not match with the real, for example: I start a new meeting room, and stay in the room for about 5 minutes,…
0
votes
1 answer

How to deal with "Access denied. You are not authorized to read activity records." when using service account access Admin SDK API

I'm having a problem when trying to access Admin SDK API to get some audit report using service account. I've contacted to my workspace administrator to granted the Domain-wide Delegation with the service account clientID, which i created from my…
0
votes
1 answer

Firebase Realtime Database Triggers on Cloud Run or Kubernetes, Not Cloud Functions

Based on Firebase documentation, one can create a cloud function to trigger when documents are added/updated/deleted on Firebase database through: functions.database.ref('/messages/{pushId}/original').onUpdate(); However, using the Node.js admin…
0
votes
1 answer

Confusion regarding permissions (write access) for the calendar resource

I have a google account with my company domain. I received super user status so that I can access all the calendars in the workspace. I registered my app and followed oAuth2.0 authorization steps with these scopes…
0
votes
1 answer

Clearing DATE field in Google Admin SDK API

Any Google workspace DEV's here? I have some fields for my users I am trying to clear via the API. using Method: users.update https://developers.google.com/admin-sdk/directory/reference/rest/v1/users/update If I pass a null value in the form of "" …
k0d3r3d
  • 23
  • 1
  • 4
0
votes
1 answer

Adding multiple users JSON for Google Directory API (Python)

When I try to add users: In this way I can only add one user, but I will need to add multiple users from the JSON file. req = [ { "primaryEmail": "first.user@mydomain.com", "name": { …
0
votes
0 answers

Captcha is present when running selenium automated tests on Windows server

I am trying to run selenium tests on Jenkins hosted on a Windows server. The test starts with Google login, when I try to run them on my local machine it works perfectly fine, but when I run it on Windows server it will ask me to solve the captcha,…
0
votes
1 answer

Getting a Lot of Warnings when I use REST Resource: userUsageReport

I'm using the API REST Resource: userUsageReport [https://developers.google.com/admin-sdk/reports/reference/rest/v1/userUsageReport]. Everything was great until this week. This week I started to get a lot of warnings. The strange part is that if I…
rafasalo
  • 243
  • 2
  • 16
0
votes
1 answer

Not authorized when accessing google directory api

I am using node to list all users from domain. I had created service account with domain wide delegation. The domain admin gave access to the service account to required scopes. Code: const { JWT } = require('google-auth-library'); const {google,…
mikeyMike
  • 21
  • 4
0
votes
1 answer

Firebase custom claims doesn't seem to work

I have an issue with my project - Node.js and Firebase. I want to add an admin role so I use custom claims according to the docs. I have 3 functions in the cloud functions: exports.addAdminRole = functions.https.onCall((data, context) => { return…
0
votes
0 answers

C# Google Admin API - Enable Gmail and other apps

I've been working with the Google Admin API C# library for a few days now to create / delete users. Which I have got working. However when I create a new user via the API, the Gmail app is turned off by default (along with other apps) and so when…
0
votes
1 answer

Federated Single Sign-On to AWS Using Google Apps

We have had everything working perfectly for the last couple of years, then all of a sudden in the last week we cant log into AWS using the Google SSO. We are setting up the roles for the users again (as per…
user3493508
  • 11
  • 1
  • 2
0
votes
1 answer

Second level orgunit not found

I'm using the google admin api class to check for organization units. First level works, but second level fails. I've tried putting it in single quotes as per other posts, but still won't find it, and I get Yes No everytime. This seems to have…
Alex
  • 1
0
votes
1 answer

Publishing an app to Google Workspace Marketplace to query other organisation's directories

Google's docs are not too clear on whether this is possible. I have an OAuth configured for SSO into my organisation's application which is working correctly. I also wish to create a Google Workspace Marketplace App…
Mark Walsh
  • 3,241
  • 1
  • 24
  • 46