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

Delegate domain wide authority for a script bound to Google Forms

I want to get and set auto forwarding details for a user in the company domain. My admin made me a delegated admin so that I can fetch user data using AdminDirectory.Users. However, when I try to fetch auto-forwarding/Label/Filter data for a user…
0
votes
3 answers

How to create calendar resources in a Google domain?

I have superadmin access to a domain, and I would like to create calendar resources using Google Apps Script. Normally we can create calendar resources in Google admin console with admin access (https://accounts.google.com)...But but I want to…
Kanchan
  • 65
  • 2
  • 11
0
votes
0 answers

How to authenticate a user using the Google Directory API?

We are in the role of a SAML IDP in an SSO integration with Google for Work domains. We would like to use the Google Directory API as the interface to authenticate and retrieve attributes for the user identities in the Google for work account. We…
0
votes
0 answers

Google Reports API Push Notifications

I have been running an implementation for push notifications so I can be notified when a user logs in. It was working good but then it stopped working approximately two weeks ago. Here's the logic in my…
Morfinismo
  • 4,985
  • 4
  • 19
  • 36
0
votes
0 answers

Is it possible to configure SAML settings in Google Domain automatically?

is it possible to enable SSO to Google Apps automatically with super admin access? Apps Admin Settings API supports only get and update of Single Sign-On settings, but I really need to enable/create these settings on behalf of a super admin. Thanks…
0
votes
0 answers

Default schema for new users

we are trying to use google apps' SAML capabilities for our custom apps. In order to pass user roles to our apps we are looking into custom user fields (https://developers.google.com/admin-sdk/directory/v1/guides/manage-schemas). One thing we are…
jwuebb
  • 58
  • 8
0
votes
1 answer

403 error "Not Authorized to access this resource/api" Google Admin SDK in web app even being admin

I'm struggling to find the problem since two days without any idea why I get this error now even though the app was fully functional one month before. Among the tasks done by the web app, it makes an Admin SDK API call to get the list of members of…
0
votes
1 answer

Google apps script Create gmail aliases for multiple accounts using single script

I am taking alias email information from users using a Google Form and have to create the said alias. Google restricts the number of aliases per account to 30 hence I need to use different account to attach aliases to, and will be forwarding emails…
Flame of udun
  • 2,136
  • 7
  • 35
  • 79
0
votes
1 answer

Google Drive admin sdk not returning results

We just upgraded our google drive account to unlimited. I'm trying to get google drive activity by calling: https://www.googleapis.com/admin/reports/v1/activity/users/all/applications/drive Even though I know there has been upload and download and…
Al A
  • 13
  • 5
0
votes
1 answer

Gmail api & Admin SDK used to transfer emails between gmail accounts in the same organization

Using the Google Admin SDK & gmail API is there a way to automate user email transfers from one account to another user the way Google data migration tool? I'm looking for any existing scripts or methods that can be implemented in an automated…
0
votes
1 answer

Google-Admin-SDK - .Net-Client - cannot set projection parameter for user list

I'm reading our Google-Apps-User like this: UsersResource.ListRequest userrequest = service.Users.List(); userrequest.MaxResults = 250; userrequest.Customer = "xxxxxxx"; IList gusers = userrequest.Execute().UsersValue; foreach (var guser in…
0
votes
1 answer

Unable to Create User using Google Admin SDK - Exception 401 Unauthorized

I am trying to populate users in my C# application. However, I keep getting this exception: {"Error occurred while sending a direct message or getting the response."} [DotNetOpenAuth.Messaging.ProtocolException]: {"Error occurred while sending a…
Wee
  • 1
  • 1
0
votes
1 answer

Using Google Admin SDK to get a location for devices

I can use the Google admin api to get a list of all devices giving to users. Is there any way to get the location information from the api ?
Glenn Pierce
  • 720
  • 1
  • 6
  • 18
0
votes
1 answer

How to pull more than 500 user objects from my domain?

I am trying to pull about 20,000 users from my Google domain. However, i know that Google only has a limit of about 500 users for a pull request. I know about the pageToken stuff, but the documentation for it online is terrible. Can someone show me…
MesamH
  • 91
  • 1
  • 2
  • 6
0
votes
0 answers

Google Reseller Api access data to customers

I am new to Google Reseller API. Google Reseller API access data to customers from My Reseller Account without authorization. Scenario: I am adding a license of 1 user which needs to show to customer as soon as it looks like standalone of Own…
Ramdrupal7
  • 59
  • 9