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

How to get data from Google's Report API in stream

I'm using the following code to get drive log data from ReportsAPI: SCOPES = ['https://www.googleapis.com/auth/admin.reports.audit.readonly'] DELEGATION_ACCT = 'xxx' creds =…
Alex L
  • 1,069
  • 2
  • 18
  • 33
0
votes
0 answers

Admin SDK generate link to access reset password page

In GSuite, creating a user or resetting a password gives you the option to notify the user by mail. The email contains a link where he can then set a new password. Is there any way to reproduce that with googleapis ? Can't find anything related to…
0
votes
1 answer

How can I do Google drive data migration?

I am trying to do drive data migration from one user to another using https://developers.google.com/admin-sdk/data-transfer/v1/reference/transfers/insert Code Block: { "newOwnerUserId": "new user id", "oldOwnerUserId": "old user id", …
Ashish
  • 1
0
votes
0 answers

Google Directory API users endpoint sometimes doesn't return orgUnitPath

I have setup watch channels for the User resource via the Google Directory API to receive push notifications when the resource changes or is created. When my app receives a notification, it reads the e-mail of the user which was changed/created,…
rok
  • 557
  • 4
  • 20
0
votes
2 answers

Transferring Specific Files/Folders over with Google Admin SDK API

Google API Admin SDK Data Transfer: Can be found here I have been able to successfully copy over all files from 1 Google account to another, but I am looking to copy over just 1 specific file. Scopes and permissions are correct. The successful API…
Duke
  • 163
  • 8
0
votes
0 answers

How to get refresh token for Google Admin Directory API?

I'm using Google Admin SDK Directory API in my project. I'm using Google sign first and then using access token to access this API, this access token expires after certain time. How I can get refresh token for long time so that I can access this…
0
votes
1 answer

Google Directory API/client lib custom schemas incomplete response

For few last days I'm facing API and client lib issue while listing custom schemas from directory. According to doc, response should contain kind, etag and list of schemas, but when called using (Java) client lib or online API…
0
votes
1 answer

Want AdminDirectory.Users.list more then 500 records

In below code i want the user details to be shown more then 500 records. is that possible. Thanks for any help. page = AdminDirectory.Users.list({ domain : 'domain name', orderBy : 'givenName', …
0
votes
1 answer

How does the google batch API respond when user beyond his API quota (google developer batch/admin-sdk/directory/v1/)

I am using Google admin-sdk batch API for most of my use cases. I wonder how does google respond when the user hits rateLimit (API Quota). Does it set the outer response as 403 or individual response with 403 response code?
Sampath
  • 1
  • 1
0
votes
1 answer

How to List / Export ALL "Company owned" devices?

The command is suppose to Retrieves a paginated list of all mobile devices for an account. Mobiledevices: list Currently, it's returning ONLY devices with ownership "User owned". We are missing ALL the devices set as "Company owned". Thanks
0
votes
1 answer

How to change google service account profile picture in high quality?

I am using and it working fine, Problem is that it down scales the image to 96 X 96. If i upload same image from google dashboard, it makes the image crop then saves in good quality. service.users.photos.update( { userKey:…
0
votes
1 answer

How to get content_aware_access in reports sdk?

I want to use Reports API - ADMIN SDK to get content_aware_access list, but i can't find any api to return this. First I set the security level at https://admin.google.com/u/1/ac/security/context-aware and then check it at…
Mad-Hades
  • 25
  • 9
0
votes
0 answers

How do I retrieve all mobile devices?

I want to retrieve all mobile devices under my G Suite domain. So I tried on "Try this API" with an account that was granted the "Super Admin" role. I can retrieve 109 devices on Admin Console. Admin Console - Devices - Mobile…
hidehide55
  • 11
  • 1
0
votes
1 answer

How do I authorize the adding of a member to a Google group?

I found this snippet from another thread on this site but the issue was never resolved and I'm following up on it so this is the original thread function addGroupMember(userEmail,groupEmail) { var member = { email: userEmail, role:…
0
votes
0 answers

Moving an organization unit using Admin Directory API to another organization unit?

I need to move an organization from one to another. I have organization units like below: Domain.com -> Grade 12 - Botany - Mathematics -> Grade 11 - Zoology I need to…
Satheeshkumar
  • 75
  • 3
  • 12