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

Can't connect to google directory-api using proxy with httplib

I have my scripts ready to manage users in google however I can't find anyway to use a proxy with httplib2, as such I am constantly switching to mobile to avoid doing tasks by hand. For refrence all code comes from the quickstart :…
Matt
  • 501
  • 3
  • 13
0
votes
1 answer

Can creationTime and other Directory meta-fields be used in a query?

I'm trying to filter the list of users returned from Directory.Users.List, and want to use the creationTime value in the filter. According to this: Search for users ...you can use Date fields in comparisons, however when I try something…
MushyMiddle
  • 419
  • 6
  • 14
0
votes
2 answers

AdminDirectory.Groups.aliases.list undefined

I am trying to use google api with google scripts. I can get data from google apps for example by: var result = AdminDirectory.Groups.get(OptionalArgs); but when i try to do the same with: var result =…
A.Wiggins
  • 1
  • 1
0
votes
0 answers

Google Directory API tokens.list lists apps for some users but not the admin

In a particular domain, I installed some apps(Example: Infogram, 5PM, etc.) for the admin and another user. In the directory API methid tokens.list, these apps show up for the second user but are not listed for the admin user. If the app did not use…
Jesna James
  • 75
  • 1
  • 8
0
votes
1 answer

How can I programmatically enable Gmail for new users using Admin SDK?

I'm able to create new users in the Google Directory (using the Admin SDK for php), but I notice that when I log in as any of theses users, Gmail is not enabled. Is there a way to add functionality to my code to enable Gmail for new users? If this…
Craig Davis
  • 143
  • 1
  • 9
0
votes
0 answers

Google admin api push notification - Directory user update

I have a question regarding google admin api push service When registering for user update push notification, is it posting to my url, when any of the security parameters are changed? parameters such as Authorized access? (The case as follows: A new…
gCoh
  • 2,719
  • 1
  • 22
  • 46
0
votes
0 answers

Google Admin SDK user push notifications and renaming of users

I want to ask about the situation that is related to the renaming of a user by an administrator. It can take up to 10 minutes (from the disclaimer) to get user's name changed, but the notification about update event is sent immediately. There is no…
kshp
  • 1
  • 1
0
votes
1 answer

Google Directory API returns not authorized for users().patch().execute()

I'm following https://aws.amazon.com/blogs/security/how-to-set-up-federated-single-sign-on-to-aws-using-google-apps/ and attempting to set up a script to patch my Google users with SSO AWS roles. Using the scope listed at…
0
votes
2 answers

Accessing a Google Domain's Google Groups from a service account - Keep getting 403 unauthorized

I'm trying to get a list of groups for a domain in Google Api (https://developers.google.com/admin-sdk/directory/v1/reference/groups/list). I'm using "domain wide delegation", and have a service account from which the web app makes all its requests…
0
votes
0 answers

How to retrieve list of chrome extension, bookmarks using google admin sdk

I am searching different ways to retrieve list of extensions installed by users using their organization email id into chrome. We can find it by writing extension that uses Chrome Management API. Is there any way we can retrieve list using Admin SDK…
0
votes
1 answer

Google Directory API cannot insert or patch user property in Java

I want to create user account and user's Optional Properties (ex. addresses, emails, externalIds, ims, phones, organizations) using Directory API Users-insert. But when I check the insert result, only 4 property can be see (familyName, givenName,…
0
votes
1 answer

Looking for docs for trigger_event property in AdminDirectory.Users.list response object

While working with the Directory API I saw in the Users.list response a trigger_event field. I can't find any documentation on this. Is there any information on this property?
Spencer Easton
  • 5,642
  • 1
  • 16
  • 25
0
votes
0 answers

Google Reports API channels.stop returns 404 Error

When using google-api-python-client to stop receiving push notifications, it returns Error 404: Channel not found I call the method as follows: body = { 'id': "0ddjjjdkd-b29b-asdb-9493-d698abcdkj", 'resourceId':…
0
votes
1 answer

How to get the organisation name of a particular user in Google apps script?

When I execute the below code CN = AdminDirectory.Users.get(user).organizations; I got the output as below- [{customType=, name=OPOP, description=Software engineer, title=SWE, type=work, primary=true}] But i would like to print each item…
Kanchan
  • 65
  • 2
  • 11
0
votes
1 answer

User list api with query for org unit also gives sub org unit users

I'm using the api call like /admin/directory/v1/users?domain=domain.com&query=orgUnitPath=/Sales and users in that org unit but say I also have a sub orgunit like /Sales/California and more users there. Is there a way to only get the users in /Sales…