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 - How to use pageToken in Users List

Using Google App Script with GSuite's Directory API. I want to list all users from the root OU. This code pulls all users from the directory and filters out those who are members of sub-OU. The code. /** * LIST USERS FROM ROOT OU */ function…
0
votes
1 answer

Custom G-Suite User Attributes

I'm wondering if it's possible and how we would set custom attributes with a default value in G-Suite which automatically gets populated when we set-up a new user? I can batch update in GAM tool, however this is extra steps which I want to try and…
0
votes
1 answer

Admin SDK + Vuejs ListAllUsers?

I have read the documentation about listing all users via admin SDK but still struggling to show users in my vue component... the code in the documentation is: function listAllUsers(nextPageToken) { // List batch of users, 1000 at a time. …
Nasr Galal
  • 31
  • 6
0
votes
1 answer

Unable to access GSuite Groups - Error Code 400

I have GSuite Service Account and My app uses following scopes (these are working fine) :…
0
votes
1 answer

GSuite Alert Center "list" action error 401

I'm trying to use the REST API for retrieving the GSuite Alert Center alerts - doc I've been doing the calls via the Java SDK (artifact google-api-services-alertcenter, version v1beta1-rev20190725-1.30.1). I have a GCP Service Account, to which I…
Nadav
  • 1,167
  • 2
  • 19
  • 43
0
votes
1 answer

Limiting google directory groups APIs to caller's own groups

We are doing a web app for our internal organization use. We need to check members and their roles for a particular group from our backend. Our google administrators are not providing us domain wide access to google admin APIs, mentioning it would…
Waqas
  • 94
  • 2
  • 7
0
votes
1 answer

Receiving keyError: 'deletionTime' on the User resource object

I unexpectedly am receiving a keyError when I try to access 'deletionTime' on the User resource object after successfully retrieving a user object from a Users.get call. I tried printing all the keys of the returned user by executing…
hnac
  • 1
0
votes
0 answers

What is required for an Admin managed Chrome Extension to be capable of accepting a configuration JSON uploaded into the console?

We need the same ability (as Google Sign Builder) to consume a configuration file associated with our custom extension -- but I read that the extension needs to be capable of doing so first, before the Admin Console UI provides an option to…
Rob Hurst
  • 1
  • 1
0
votes
1 answer

API to Purchase Domains For G-Suite, Programatically

I am not able to find any G-Suite SDK or G-Suite REST API that I can call to purchase Domains for G-Suite linked sites. I want to be able to create G-Suite-linked public domains programmatically. While G-Suite allows purchasing domains through UI…
0
votes
1 answer

How can I get the user's display name?

I'm using the G Suite Admin SDK users/list functionality to get a list of users in my domain. This works except that the returned information does not include the user's display name. When I say the "display name" I mean the name that is shown in…
0
votes
1 answer

Getting User Activity Reports for a given list of users in G Suite

I'm trying to use the Admin SDK Reports Service to get the last login time and some other data for 20 users. It's not feasible to get the data for the whole domain and then filter down due to the size of the domain, so I want to get the data for…
0
votes
0 answers

Gsuite reseller API for create admin user for our customers using PHP

I am using google API client service to perform all GSuite API like customer creation, customer subscription, and customer admin user creation. So using the API i could able to create customer, subscription and list users of customers. But only…
0
votes
1 answer

How to fix 'No OUs found'

I am using the Google Admin SDK - Directory API, I have a successful connection to the API but no OUs are being stored in my array. Result: Getting the OUs in the domain No OUs found in the domain. I tried modifying the code to list the first 10…
user2520212
  • 121
  • 1
  • 1
  • 9
0
votes
1 answer

Getting the Google Identification Number

For users in a Google domain, there's a property called gidNumber. The only way I know of how I can access this id is by connecting to the Google Ldap. When I do a query in Google Admin Directory, I cannot find this property. Are there other methods…
user1222324562
  • 965
  • 2
  • 9
  • 24
0
votes
1 answer

Google Admin SDK Latency

I am experiencing latency when doing queries against the Google Admin API. def get_user(self, email: str) -> dict: res = ( self.service.users() .list( domain="gmail.com", projection="full", …
user1222324562
  • 965
  • 2
  • 9
  • 24