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
2 answers

G Suite Admin SDK Users Watch sends notification before a name change is retrievable

I've registered a channel to send notifications to an endpoint when a user is updated via the Users watch mechanism. When receiving a notification indicating a user has updated, I then retrieve the user's information via the Users get endpoint. I…
0
votes
1 answer

AdminDirectory.Members.list search by email

Im running a function that receives an email address, then checks if this email is registered in the group, and only if it is not, adds it as a new member the checking is done by running the following function: function CheckIfMemberExist(email) …
Assaf
  • 31
  • 4
0
votes
1 answer

Is there a way to programmatically determine how long a conference room resource has been available for a given time slot?

For example, let's say a conference room was booked for a 12-1pm meeting. At 9am that same morning, a user cancelled that meeting, freeing up the conference room. Is there any way to programmatically run a script which would indicate, if run at…
Ryan
  • 95
  • 9
0
votes
2 answers

Exception in thread "main" com.google.api.client.auth.oauth2.TokenResponseException: 401 Unauthorized when trying to access Google classroom API

I have read all the stack overflow questions related to the issue. I got some idea about it but it could not help me to solve this issue. I have used service account for authorization. Because I don't want to display the authorization screen for my…
0
votes
0 answers

Google API returned incorrect language content

The request url is language=TW , however below request result GEOMETRIC_CENTER content are English not Chinese . https://maps.googleapis.com/maps/api/geocode/json?latlng=22.47103,113.99985&key=XXXXXXXXXXXXXXXXXXXXXXXXXXXXX&language=zh_TW The result…
0
votes
1 answer

How to create new users in g suite without oauth2

I am trying to create a process that will create users in g suite using Java. The Google documentation is a little bit confusing for me but I manage to create a G Suite user on localhost. The problem is when I deploy de application on a specific id…
Adrian
  • 947
  • 1
  • 12
  • 24
0
votes
1 answer

Get all users files in G Drive

We are developing an application, in that we need to get all the files of all users in the domain. We have enabled service account with domain-wide delegation already, but whenever we tried to access all user's drive, it is required to get each user…
0
votes
1 answer

Get all users from Google domain. Google Admin SDK - Users List

I want call this api https://www.googleapis.com/admin/directory/v1/users. I Have an application from Google Console with creditendials configured. API KEY. I'am admin of my google gsuite domain. I…
Polaris
  • 215
  • 1
  • 3
  • 10
0
votes
1 answer

Accesing the user's search data using Google Admin SDK

I was working on an application to analyse the user's information to predict possible health concerns with the user, for which I'll be needing access to the user's google search data and the word choices of the user. Is there any way I can use the…
Tavish Jain
  • 155
  • 1
  • 2
  • 13
0
votes
1 answer

Export a list of all Groups in G Suite

I need to export a list of groups in G Suite to compare with the source from a recent migration from another mail provider. I'm stuck, trying to get Postman desktop client to connect via api to the Directory API of our g suite instance. Basically…
Ninja Turkey
  • 1
  • 1
  • 1
0
votes
3 answers

AdminReports.UserUsageReport.get function is not working with userkey

I am getting below error when I try to run the code API call to reports.userUsageReport.get failed with error: Invalid string value: 'dummy@mydomain.com'. Allowed values: [all, userkey] (line 13, file "Code") var page1 =…
ab.it.gcp
  • 151
  • 1
  • 14
0
votes
1 answer

Query Google Admin User directory comparing parameters

I'm trying to filter my users list by comparing two parameters query="EmployeeData.EmployeeID=externalId" EmployeeData.EmployeeID is a custom schema that is populated, with a cron job, with the same value as externalId. Of course I let the cron do…
0
votes
1 answer

Google SDK missing access token

I'm trying to automate process via Jenkins, for creating and deleting users in G-Suite via API. I could generate API Key, OAuth 2.0 Cliend ID & Client Secret, but from this page:…
Leonid Kopylov
  • 41
  • 1
  • 1
  • 5
0
votes
1 answer

How to convert time for G Sutie Reseller API from number to exact date?

Due to G Suite Reseller API: Manage subscriptions. Reference as below link. https://developers.google.com/admin-sdk/reseller/v1/how-tos/manage_subscriptions When I call startDate and EndDate it will show as an integer number as below: "startTime":…
0
votes
1 answer

G Suite: Erase local user Profile in Chromebook

i'm wondering if there is a way (through script or anything) to remotely remove the local profile of a user on a Chromebook managed through the Google-Admin-Console ? GAM has no option for that. and the Google-Admin-Console doesn't provide such…