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

Google Admin SDK API Errors

I have been trying to troubleshoot an issue with Chrome devices not restarting after each user sessions. -All Chrome devices have a third part APP installed for user sessions and Management -Third party APP communicates with GA using Admin SDK…
0
votes
0 answers

Directory API not working out of my domain

[google-admin-sdk] We are using the Directory API to retrieve users' contacts. However, when we test with a user (that has a domain) I'm facing "App is blocked"-message, when we tested that with Miro users, it works fine. How can we solve that?
0
votes
0 answers

Google Workspace Addon: Do I need a workspace admin account to test AdminDirectorySDK feature?

I am currently trying to make a google workspace Add-on. The Addon will have a feature to browse a list of users using AdminDirectorySDK. let page = AdminDirectory.Users?.list({ query: query, domain: "gmail.com", //what domain to use for…
0
votes
0 answers

Do AdminDirectory advanced service APIs only work for admins?

I've got the following function in an unpublished Google Apps Script function getUserFromEmail(userEmail) { return AdminDirectory.Users.get(userEmail) } I've enabled the AdminDirectory advanced service in the script As an admin, I run the…
0
votes
0 answers

How can I locally test cloud function invocation from third-party in Firebase?

I am developing an API for a third-party application not related to Firebase. This API consist of cloud functions to create and add users to database, retrieve user information and so on. These functions are created using the admin SDK. Example of a…
0
votes
0 answers

Google Shared Drives Permissions in a tree structure

For our business we are looking to find out which folders are shared with who. So we can keep it clean and organized. I've been looking for some code that can help me with this, but the only option available at the moment is Gat+ from GatLabs. Witch…
0
votes
0 answers

How can I get the authorization date of a connected app per user in Google Admin?

I was trying to list connected apps of mine google workspace with authorization date and if it is possible a last time used date as well. On the frontend of Google Admin we have Connected applications in the Security dropdown inside of Directory ->…
0
votes
1 answer

setValue using an array of schema values, each schema with an array of fields, and each field with an array of "inner" fields

[Edited, for simplicity] I want to set the value of a few cells in a Google Sheet from the values retrieved from a schema list (from a Google Workspace domain), using "AdminDirectory.Schemas.list('my_customer').schemas". So far I only achieve…
0
votes
1 answer

Google Directory API: Search for groups using a search term containing a space

I am looking to search for Groups using the Google Directory API, as per the documentation at https://developers.google.com/admin-sdk/directory/v1/guides/search-groups#fields In particular, I am searching on the "name" field using a prefix. However,…
Tim C
  • 3
  • 1
0
votes
0 answers

Get the version of ChromeOS and Chrome for the current user

I want to build a WebApp in Google AppsScript that can pull information for the user accessing it. I want to pull their ChromeOS version (if they use a Chromebook) and their Chrome browser version. I have searched the Google APIs but haven't seen…
SL8t7
  • 617
  • 2
  • 9
  • 27
0
votes
1 answer

Unable to get users by orgUnitPath with Admin SDK

Why am I unable to retrieve a list of users when using query to search the orgUnitPath? When I try the same parameters on the Google API Explorer (https://developers.google.com/admin-sdk/directory/reference/rest/v1/users/list) the response returns…
MeesterZee
  • 99
  • 7
0
votes
0 answers

Directory API Admin SDK posixGroups

Is it possible to add or edit posix group data to affect the gid for use in Goodle Secure LDAP? I am attempting to align workspace groups with existing user groups to transition away from on-prem ladp servers. Tried working with and leveraging the…
0
votes
1 answer

Google Cloud Function executes slowly once deployed

I'm using a Cloud Function that performs the following steps: fetch some data from an API prepare the data previously retrieved store the data in Firestore This is the code I'm using: exports.syncItems = functions.https.onRequest((request,…
0
votes
0 answers

How can I determine if a user is "active" when they haven't logged in recently?

We have started auditing our users and deleting them if they haven't logged in for more than 2 years. However, many users are actively using their google account on their mobile devices and haven't actually logged in for an extended amount of…
sbartlett
  • 1
  • 2
0
votes
1 answer

Getting 'HttpError 401' when attempting to use Google Drive API with delegated credentials

I'm attempting to look at the files for all the users in my org using the Google API in Python. I have a service account with domain-wide delegation. I'm attempting to create delegated credentials for each user so that I can look at their…