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

Update user with Admin SDK

I am trying to update some user data via the admin SDK. I thought this would work function directoryUpdate(userId, userDept, userLocation, userPhone, userTitle) { var update = { organizations: { name: "Next Step Living", …
Jim F
  • 137
  • 2
  • 10
3
votes
1 answer

Download a mailbox using Email Audit (Admin SDK)

I want to download mailbox by using the Admin SDK, but I can't get it working. I can't find what's the Scope I need to define. I'm using a service account. In order to prepare a download, you have to do a POST request to…
3
votes
3 answers

Email Settings API - How to delete Send-as alias

The Google Apps Email Settings API describes creating and retrieving Send-as aliases, but not how to delete them. Is it possible to do this via the API, or is there a workaround? I'm using the Directory API to add and delete user aliases, which…
James
  • 53
  • 1
  • 6
3
votes
1 answer

python code for provisioning user google apps admin-sdk

I'm transitioning to the new admin-sdk api's and not finding it easy. I've figured out oath and a basic user lookup, but now I am stuck on creating a google apps account. Here's the code I am using: import httplib2 import pprint import sys from…
3
votes
1 answer

Google Groups API add Member

I have found lots of information on the internet about adding Members to a Group in Googlegroups, but I cant manage to get any of it to work. I am working in Python-DJango. Using a bussiness account, I manage to add them using Provisioning API, but…
ylc
  • 199
  • 1
  • 3
  • 9
3
votes
1 answer

How can impersonate a Domain to Access Google API Admin SDK with Oauth2?

We have several apps Deployed on Google Apps Marketplace using OAuth 1.0 protocol. According expiration OAuth 1.0 in Google Platform we are trying to migrate all the apps to new OAuth version but we are facing some difficulties regarding background…
3
votes
4 answers

Google Directory API - 403 [Not Authorized to access this resource/api] on one machine, works on another

I've been testing my authorization code and suddenly I started to get: Not Authorized to access this resource/api [403] Errors [ Message[Not Authorized to access this resource/api] Location[ - ] Reason[forbidden] Domain[global] ] I scratched my…
Simon
  • 426
  • 4
  • 12
3
votes
2 answers

Google Admin SDK [Directory - API] check User password

I am using Google Admin SDK Directory API to create users and using Service account I am able to perform CRUD operations on them. I have a requirement whereby I have to check the credentials of users created using SDK. When you fetch the users the…
baba.kabira
  • 3,111
  • 2
  • 26
  • 37
3
votes
1 answer

Examples for using Google Admin SDK for .NET

I am trying to find an example in .NET to gerneate the following call to the Google Admin API: PUT https://www.googleapis.com/admin/directory/v1/users/user%40domain.com?key={YOUR_API_KEY} Content-Type: application/json Authorization: Bearer…
3
votes
1 answer

What is the proper way to authenticate with Google to use Google Directory API in the Admin SDK?

I've been having trouble over the past few days using the Google Directory API in the Admin SDK for Google Apps. The documentation leaves a lot to be desired and when I contacted Google Apps Enterprise support they indicated they do not support the…
3
votes
2 answers

Why am I getting an error "TypeError: method() takes exactly 1 argument (2 given) in Python using Directory API?

I am attempting to write a command line script that works with Organization Units within our Google Apps domain. Therefore, using the many convoluted documentation from Google on this, I have successfully created the application in the API Console,…
Tyler
  • 1,291
  • 1
  • 13
  • 20
3
votes
1 answer

How to create a Google account programmatically?

Does anybody know how to create gmail account in c# (programmatically). I am refer this link https://developers.google.com/admin-sdk/directory/v1/guides/manage-users.
Anurag Jain
  • 1,371
  • 4
  • 23
  • 34
3
votes
0 answers

Directory API - Why "get all groups for a member" doesn't return groups including all users?

I'm migrating from the old Google Provisioning API to the new Google Directory API. Previously when I retrieved all groups for a member, the result included groups where members is All members of x.com. The new directory API doesn't include these…
3
votes
0 answers

How to get custom attributes of User using Admin Sdk?

I am using the Admin SDK 1.8.2, I am able to get the user details except birthday,gender and custom attributes in…
RBP
  • 481
  • 1
  • 9
  • 29
3
votes
2 answers

Get list of domains for an Organization using Google Apps Admin SDK?

An organization in Google Apps can have multiple domains. API requests to the Admin SDK require the domain name as a parameter. Ex: https://apps-apis.google.com/a/feeds/domain/2.0/{domainName}/general/defaultLanguage Is there a way to…
2arrs2ells
  • 3,637
  • 3
  • 15
  • 12