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

Issue in adding an existing member to a group using directory api

static void addGroupMember(Directory client) throws Exception { String userEmail = "sample@mydomain.com"; String groupEmail = "mygroup@mydomain.com"; Member member=new Member(); member.setEmail(userEmail); …
0
votes
2 answers

Set changepassword="true" in apps script

I have collected all users in a certain OU. Now i would like to change a parameter in the objects. But i get an error code TypeError: Cannot find function changePasswordAtNextLogin in object function admsdk() { var x =…
0
votes
1 answer

Directory API Scope

i used a sample code of OAuth2 access using clientid for native application. I sent in a scope for the following: "https://www.googleapis.com/auth/admin.directory.user" But for some reason, i'm not presented with the acceptance for the end user. …
Tom
  • 45
  • 8
0
votes
1 answer

How to turn the service on or off for all users or for users in specific organizational units using API

I have set up a client side application which uses admin sdk to manage google apps cloud. Is it possible to turn the service/applications on or off for all users or for users in specific organizational units through APIs
0
votes
1 answer

Google Admin SDK Directory API acts weird since today (2014/02/13)

Turns out that today methods get and list return different givenName, familyName and fullName of a given user if that particular user has a G+ profile with a different name. EDIT: To be clear: get method returns the usual names but list method…
0
votes
1 answer

OAuth 2.0 Authorization and Group Manager feature with Google's New Directory API for .NET library

We are currently using the "Deprecated Provisioning API" using the .NET libraries for creating Google Groups within our organization. Provisioning API does support adding Group Members with Manager role. As a work around, we would like to build…
0
votes
2 answers

Listing users using Google Admin SDK in Java

I want to list users in a domain as defined in google. I saw that it's available through the Google Admin Directory SDK. Although, I couldn't find any examples or documentation how can I use it in Java. I already have got the authorization part. I'm…
0
votes
1 answer

Google_ServiceException error when retrieving list of users (using Google API SDK)

I am using the following code to retrieve the list of users associated with my Google apps admin account. It's working fine when using a Google apps admin account but when using other Google apps/Gmail accounts an error…
0
votes
1 answer

GoogleApps Directory APIs To Manage Users

i am writing a java client to manage users in directory API. i am unable to find where to start. I checked the docs and couldn't find any example on usage of the API's, it was just saying the scopes, the url's required and the format to use. But i…
satya
  • 109
  • 2
  • 14
0
votes
1 answer

Using access token in request to fetch users forbidden 403

I have been able to use google admin api to login to google apps and retrieve user list. I need to do simiar using HTTPClient. I have earlier created a service account and been able to get the access token using JWT approach. Had granted…
user3240209
  • 51
  • 1
  • 4
0
votes
1 answer

Google Admin SDK in PHP

I am using the following code to retrieve the list of users associated with my google apps account. There is no problem with authentication but when the redirection made this error is appearing. index.php
Mark
  • 73
  • 8
0
votes
1 answer

How can I retrieve the CustomerId from a using Google API calls from a NonAdmin user?

I'm trying to retrieve the 'customerId' value for a Non-Admin user on a Google Apps Enterprise. As a non-admin there are a lot of APIs I won't have access to. Is there any way for me to retrieve the 'customerId' for my account?
Maixy
  • 1,151
  • 2
  • 12
  • 27
0
votes
1 answer

How can I find the Google Apps Owner / Admin via Google APIs?

Is there an API call that will tell me the Default Admin / Owner of a Google Apps Enterprise account? I will be making the API calls from a non-admin user account on the same enterprise.
Maixy
  • 1,151
  • 2
  • 12
  • 27
0
votes
2 answers

Programmatically avoid Google OpenID access request

I am providing my Google Apps Domain users content via Google Sites. Furthermore I have 3rd party content which I would like to integrate. This content needs to be secure and available only to the Google Apps Domain users. I have implemented openid…
Treemonkey
  • 2,133
  • 11
  • 24
0
votes
2 answers

Google Admin SDK Directory API User Privileges

Can a normal user account in my domain access the function on Google OAuth2 directory service API to retrieve users list or data ? I have a web-application which allow the users to login with OAuth2.0. After that, the users should be able to see…
CK Tan
  • 596
  • 2
  • 10
  • 25