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

Directory API missing functionality?

I've been asked to lock each chrome device to a small subset of users (end user plus a couple of admins), and currently this appears to require creating 1 OU per device and manual entry of the allowed accounts in the sign-in restrictions attribute…
0
votes
1 answer

How to I get a list of user accounts with the google directory API?

Here is my code: String key = Console.ReadLine(); //input oauth2.0 key from google Console.WriteLine(key); Google.Apis.Admin.Directory.directory_v1.DirectoryService service = new…
0
votes
1 answer

Invlid_grant When trying to refresh token - Google Oauth - PHP

just started using google admin SDK,trying to retrieve specific user's infomation. i keep getting the same error over and over [29-May-2015 14:41:18 Africa/Tunis] PHP Fatal error: Uncaught exception 'Google_Auth_Exception' with message 'Error…
0
votes
1 answer

Deleting Contact information (Email) for any google Account

Scenario is like, I update user primary EmailId, It got successfully updated. But the old emailid Which the account was registered with, is added as a alias and shown in contact information for that account. I am able to delete alias but the contact…
0
votes
1 answer

Any ways to obtain the download logs of Google Drive for Work with API?

I am on Google Apps unlimited license, and I am trying to obtain the download log of both domain user and external user via Google API. I have tried the Activities List API of Admin SDK to obtain the activities logs but according to the following…
kevin
  • 1
  • 1
0
votes
1 answer

Converting Google Apps Provisioning API to Directory API for .Net code

Updated Code that works for user account creation using Directory API: Adding user to OU using directory API still doesn't work. String serviceAccountEmail = ".........@developer.gserviceaccount.com"; X509Certificate2 certificate = new…
TechPro
  • 331
  • 1
  • 10
  • 29
0
votes
1 answer

Insert user and assign it to a group at the same time using Google Directory API

Is there a way to make the insert and assignment of a user to a group a single, unit operation with the Admin SDK API? Currently I have to make separate calls to directory.users().insert().execute() and directory.members().insert(,…
Marcos
  • 1,237
  • 1
  • 15
  • 31
0
votes
1 answer

Google Reports Audit Calendar stopped working

For some reason the report screen is stopped from five days ago. Any idea?
0
votes
0 answers

Using OAuth2 to permit users to authorize as a global user

Apologies for the oddly worded title, however I could not come up with a better one. My application should be able to perform a limited set of actions on an Enterprise Google Apps system. Users submit requests to the application, the application…
0
votes
0 answers

Google apps for education get user organizationUnit

The People API with 'me' is supposed to give organizations. But found that the organizations comes from user entered Google plus. I want to find current logged in users Organization Unit under which the admin added them. I am building a Marketplace…
0
votes
0 answers

Google Gmail Restrict delivery by API

My organization wants an application that configures users by organization units and restricts the delivery of emails to users. This could be easily done with the domain administration console: https://support.google.com/a/answer/2640542?hl=en but…
Quizh
  • 73
  • 4
0
votes
1 answer

How to access to userDefined or ExtendedProperties data of a User in Directory API

Since the Google Apps Profiles API has been officially deprecated. It has been replaced by the Directory API. The fields (Organizations, Phones numbers, ...) of a ContactEntry (Apps Profiles API) exists in the User (Directory API). But I cannot…
0
votes
1 answer

Group Setting API : Error 401

I am using Google Admin SDK API to provision users/group in Google using Stand alone C# code and all operations including create user, update user, create group, add member, get member ,search user etc are working perfectly fine now I am trying to…
0
votes
1 answer

Unable to retrieve group that has all user

I am trying to retrieve all groups for a member, Link. I have noticed that if a group that has all the users, it will not be retrieved. Any idea how to solve this issue?
Teddy Yew
  • 27
  • 2
0
votes
1 answer

Shared Calendar Ownership & Admin User

I'm looking to do an integration that makes use of a shared calendar for the domain my app is installed on. My initial plan was to create the calendar under the domain admin that is shared with the rest of the users on the domain. My concern…
cwaeland
  • 13
  • 3