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
5
votes
4 answers

Converting string to web-safe Base64 format

I am testing how to update user picture using the Admin SDK Directory Service with Google Apps Scripts with the following function: function updatePhoto(){ var fileId = 'XXXXXXXXXXXXXXXXXXX'; var b = DocsList.getFileById(fileId).getBlob(); var…
user2054013
  • 133
  • 3
  • 3
  • 8
5
votes
1 answer

What is the Maven dependency for Directory API Client Library for Java?

My maven project uses Directory API Client Library for Java and i needed to include it as a dependency. But in Directory API Client Library for Java page, under the Add Library to Your Project title when i select maven as my build environment it…
DarRay
  • 2,550
  • 6
  • 27
  • 39
5
votes
1 answer

Using the Google Directory API to provision thousands of users

I'm trying to write an application that creates mail accounts for thousands of users using the Google Directory API. Creating them one by one works, but is extremely slow. I tried to use the batch requests which is suppose to support up to 1000…
5
votes
1 answer

How to create a user with the Admin Directory api using the google-api-ruby-client?

I've been trying a few combinations but can't seem to come up with something that works. More information about the API I'm asking about can be found here https://developers.google.com/admin-sdk/directory/v1/reference/users/insert . I have a feeling…
James Woodward
  • 413
  • 2
  • 6
4
votes
1 answer

How to retrieve all 3rd party apps in Google workspace / Google admin SDK using API?

I'm trying to retrieve all the 3rd party connected apps in my Google workspace admin SDK using API. Does anybody know how?
shakatechi
  • 51
  • 3
4
votes
0 answers

How to automate Firebase FCM push notification sending Integration Tests

I have a process that runs in a Java Cloud Function and sends notifications to Firebase's FCM using the Firebase admin sdk. I'm currently testing this with unit tests that mock FCM classes. I'd like to add system-level tests that verify that the…
4
votes
0 answers

Has anyone successfully used Google Admin SDK with Google Cloud Functions?

My org is new to Google Auth and we have poured countless hours into documentation readings. The mission was simple: view members in our google groups through the Directory API. Our setup: The cloud function deploys and runs with a service account…
4
votes
2 answers

Does a Service Account have to impersonate a user to access the Directory Api?

I think I might be misunderstanding how Service Accounts work in GCP, as I don't understand why (in my situation) they need to impersonate a user to complete a task. I need to access some information that is within the Workspace Admin SDK API (for…
4
votes
1 answer

Firebase - Admin.firestore vs functions.firestore

I'm newbie on cloud function. I have some confusions. Is there any difference between admin.firestore and functions.firestore? Is admin.database for real-time database? So if cloud functions are basically written as JavaScript or TypeScript in…
4
votes
3 answers

Accessing users account with service account

We need to use an API to verify if a certain user exists as managed account (it means, that belongs to our Google Domain organization). GSuite adminSDK performs that operation, however, it requires OAuth2 authentication, authorized by an…
4
votes
2 answers

How to authorise a service account to access the Google Admin API

We are trying to create an integration with the Google Admin SDK in order to be able to retrieve, update and create accounts within our domain. However, we keep receiving a 403 error indicating that we are not authorized to access the…
4
votes
0 answers

Google Admin SDK Push API sends "sync" webhooks but nothing else

My application uses the Push Notifications API (also known as Channel Subscriptions or Webhooks in the documentation) with the Reports API to get real-time updates about auth tokens. Every 6 hours, our application makes a request to…
jelder
  • 2,220
  • 2
  • 19
  • 17
4
votes
0 answers

Google Admin Directory API: Error Not Authorized

I have a script that I would like a regular user of our domain to be able to run. I pushed it out as an add-on for docs but when my users run the script they get this error: GoogleJsonResponseException: Not Authorized to access this…
4
votes
0 answers

Google Directory API user creation and then sending a welcome email

I have created an API request that successfully inserts a user into a Google directory via the Google directory_v1 API. In the admin console GUI, after one creates a user, one has the option to send the login information via a beautiful email to the…
maininformer
  • 967
  • 2
  • 17
  • 31
4
votes
0 answers

Encrypt data in Firebase Cloud Functions

I am developing a web app using Firebase, in which teachers can create an assignment and student can submit files in that assignment. I want to implement a password feature where the teacher will be able to set a password while creating assignment…