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

Creating Alias Via Admin SDK API for secondary domain

Running a POST with the following: https://www.googleapis.com/admin/directory/v1/users/{{userid}}/aliases/ With the following as the body in JSON { "alias":"person@gsuite.company.com" } Im just getting the following error { "error": { …
0
votes
0 answers

issue automatically adding members to google groups (G-suite) with Admin SDK

(I have done a search through the questions to see if I could find something on this, but have not found answers.) I have two google groups through my G-suite and I want to automatically add people to both groups after they sign up for my club…
0
votes
1 answer

Getting Login information when when sign in to Slack with Google Authentication

I've configured my Slack account with Google Authentication, so users can log in with their Google accounts. Now, I would like to see a report from Google Workspace that tells me who logged in and when I've found this API endpoint but it is not…
Ralph
  • 1
0
votes
0 answers

Getting a 401 Unauthorized Error when trying to access reports from the Google Alert Center API

I just had a query regarding a 401 Unauthorized error I seem to have run into while developing a script to pull reports from the Google Alert Center API. I am using the quickstart with a service account and the applicable scope. I have also followed…
0
votes
1 answer

Does google admin sdk have an API that allows you to add resources through CSV import?

I want to call the API of the admin sdk to create a resource function in my system. Does google admin sdk have an API that allows you to add resources through CSV import?
chenbo
  • 1
0
votes
1 answer

Google Admin SDK Directory API members.get() returns a 404 for member email, but succeeds for member id

I'm trying to pull down the full state of group membership via the directory API, and since the members.list(groupKey=group_email) call won't return delivery_settings in its response, I'm stuck walking the list of group members and doing a…
rascalking
  • 3,443
  • 1
  • 18
  • 16
0
votes
1 answer

Transfer a customer to your reseller account

I am trying to transfer a customer domain to my reseller account. I have transfer token generated In the below screen, if I give the domain and transfer token, I will have a customer created with all the details. How to do this using the…
0
votes
1 answer

Is there a way to search users by externalid using the googleapis/google-api-python-client library?

I am writing a python application that uses the Google Admin SDK to search for users in the user directory. I need to search users by the External ID or the Employee ID, it doesn't seem to be implemented in the python library…
osama7901
  • 1,461
  • 2
  • 14
  • 21
0
votes
1 answer

I can't find some types of Admin Audit Activity Events

I checked this url below, https://developers.google.com/admin-sdk/reports/v1/appendix/activity/admin-event-names And created a script to check event for each activity type. After then, I found some activity types are Not listed on this…
Masayuky
  • 13
  • 2
0
votes
0 answers

Perform User Impersontaion from a Web Application

I'm working a web application and I would like to allow administrators to perform user impersonation using a service account to authorize the calls to the APIs. I know how to do this for example on a python script using the .JSON file. But from a…
Axel
  • 98
  • 1
  • 9
0
votes
0 answers

Tokens : Access token issues by a user

Folks, I am trying to figure out a way to get the list of the users that are using Google Drive for desktop in our Google workspace environment. Since there is no direct way of getting this information, i found an article online where one get this…
Kushal
  • 1
0
votes
1 answer

how to create user account with google admin sdk api in PHP from quickstart.php?

I'm using this example from Docs the only thing i changed was the read scope only for a scope that is allowed to create a user to list $optParams = array( 'customer' => 'my_customer', 'maxResults' => 10, 'orderBy' => 'email', ); $results =…
0
votes
0 answers

Invitation mail to group member when added via https://groups.google.com/ cf AdminDirectory.Members.insert

When adding a new memer to a group via https://groups.google.com/ an invitation mail is sent. When adding a new member via the AdminSDK API (AdminDirectory.Members.insert) no invitation mail is sent. Is there any parameter to…
0
votes
0 answers

How to tackle time delay in inserting email Alias using Google's ADMIN SDK APIs/Directory API?

Context: In my organization, we are using google's services for email. In the UI, we let user change their email alias, and delete their email alias. They can only have one email alias. I am using Directory API or ADMIN SDK in Spring boot to…
0
votes
1 answer

How can I get username in groups using groupid?

I want to make some kind of hierarchy group tree. For making it, I refer to google admin sdk reference. but I encountered 1 problem using under code. Service = build('admin', 'directory_v1', credentials=creds) groupResults =…
Dan
  • 1