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 Directory API: Requests to this API admin method are blocked

I'm trying to get the customer domain by using the customers.get API. I already added the scopes in the consent screen: https://www.googleapis.com/auth/admin.directory.customer https://www.googleapis.com/auth/admin.directory.customer.readonly But…
Roel Magdaleno
  • 337
  • 5
  • 12
0
votes
1 answer

NODEJS Google Admin Api Error: native promise missing, set fetch.Promise to your favorite alternative

I spent a lot of days to find way to authentificate to google admin api with service account. Now I have new error message: Error: native promise missing, set fetch.Promise to your favorite alternative Here my code: require('../global') const fs =…
0
votes
2 answers

How to return if condition from Google's AdminDirectory

I'm trying to return different results for respective google workspace users, the problem I'm facing is... the first answer is returning all users. E.g. William Tell and John Peter gets the return of Mark Thomas i.e. www.google.com Expectation: I…
user14566169
0
votes
1 answer

Accessing Google Admin API via Service Account

Is it possible to access the Google Admin Reports API via server to server Service Account authorization? I am try to make a server to server call to the Google Admin API, following the tutorial here. When setting domain-wide delegation, I added…
0
votes
1 answer

Directory API query "NOT EQUAL"?

I am trying to query the Directory api for users with orgUnitPath=/ but not equal to any sub OUs. I have read the following and it doesn't mention any "NOT EQUAL","!=", or "<>"…
0
votes
1 answer

how to check the license level using the Google API

I am trying to use the Google api to get the license status of an user And the api url is https://www.googleapis.com/apps/licensing/v1/product/Google-Apps/sku/1010020027/user/?customerId= But getting the error as "Error:…
Rafiki
  • 1
0
votes
1 answer

How to pull deleted, archived, suspended users data to Google sheets from Admin SDK >> Reports API using Appscript

How to import deleted, archived, suspended USERS data (user email, deleted date, org unit path, archive date, suspended date) to Google sheets from Admin SDK >> Reports API using Appscript. Thanks.
0
votes
0 answers

Is there an API to fetch Apps status for Google workspace subscription?

I'm in need of an API to Fetch available apps and their status for Org's workspace subscription Fetch user based usage stats for each apps associated to that particular subscription
0
votes
0 answers

getting status code from google admin sdk

I am calling to google admin sdk. I am successfully creating users and everything is working fine. I started testing the project and when I create a duplicate user the program crashes. Can you help me get the status code response from google so I…
Trey6
  • 67
  • 2
  • 8
0
votes
1 answer

Google Drive API: Is it possible to have app without permission to access a file

I have an external application that is making use of OAuth 2.0 to connect to access Google Drive API. The app has domain-wide delegation enabled and in the scope, it has been configured with the necessary Drive API. So with this, will my app be able…
0
votes
1 answer

Google workspace ADMIN SDK Directory API returns 403

I am trying to access below API (in browser Try this API) and after entering valid group key, I am getting below error message: API https://developers.google.com/admin-sdk/directory/reference/rest/v1/members/list RESPONSE { "error": { "code":…
Navneet kumar
  • 1,696
  • 1
  • 17
  • 26
0
votes
1 answer

How to use the getAdminSdkConfig API to initialize firebase admin SDK?

I have a project that creates GCP and adds firebase resources via API. In addition, I need to create a user using admin SDK, but in order to use it I need to initialize my firebase admin using - firebase_admin.initialize_app(cred). I'm using the…
Kazavo
  • 71
  • 5
0
votes
1 answer

Is there any way to use a script to enable a single flag on Google Admin Console?

So, I am doing a small bit of research for my Google Admin. He and I were trying to figure out how to allow users under the domain to enable the singular flag for Chrome OS Dark Mode, upon request, without unblocking the entire chrome://flags…
0
votes
0 answers

Uncaught Error: Class 'Google_Client' not found

I am building a plugin in wordpress and there I need to user Google API. I did a test with a quickstart.php with the code from here and works, the connection is ok. Now I structure all the files and the code from quickstart.php is pleaced inside a…
Beusebiu
  • 1,433
  • 4
  • 23
  • 68
0
votes
1 answer

How to list files inside all Shared Drives in a domain with Google Drive API?

I'm trying to list all files inside all Shared Drives that were created within my organisation. Although, when I try to get the files of a specific drive, I get: Error 403: The attempted action requires shared drive membership.,…
KadoBOT
  • 2,944
  • 4
  • 16
  • 34