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

Why are my if statements not working properly in Laravel?

First I make an API call to return all emails in a domain. I won't bother posting the API call as it is functional. But this is what I do with the response: $resJson = json_decode($response, TRUE); $exclusions =…
Amr H
  • 58
  • 1
  • 9
0
votes
0 answers

Should I always use serviceAccountCredentials.createDelegated() when using service account?

There is a service account with domain-wide delegation and I need to get a list of users from Workspace by means of Admin SDK / Directory Api. Should I always call serviceAccountCredentials.createDelegated( delegatedUserEmail ) or similar ? This…
0
votes
2 answers

How to Script Google Advanced Services

I've created lots of Google App Script scripts for Classroom API and the Admin Groups and Drive APIs but I can't seem to get started with AdminReports. I get the message: "AdminReports is not defined" and I can't see it listed in the services that…
0
votes
1 answer

How to query firebase firestore usage by source (admin vs web)

is there any way in firebase or google cloud console to view the firestore document reads by source (admin or web sdk)? we had a massive spike and need this info to triage.
ForrestLyman
  • 1,544
  • 2
  • 17
  • 24
0
votes
1 answer

how to escape schemaName in users search query

https://developers.google.com/admin-sdk/directory/v1/guides/search-users states that when "a user schema named EmploymentData with the fields projects" exists, you can set query to EmploymentData.projects:'blah', and it will search for all users…
glebsts
  • 337
  • 4
  • 11
0
votes
1 answer

Gmail API sendAsEmail is not a valid user or group

I'm trying to create a custom "from" send-as alias (sendAsEmail) with Gmail API and Google Admin: https://developers.google.com/gmail/api/reference/rest/v1/users.settings.sendAs/create I'm getting a 400 error with sendAsEmail is not a valid user or…
sbouba
  • 337
  • 1
  • 2
  • 9
0
votes
1 answer

I would like to know how a non-admin account can use the Admin SDK

Sorry if my English is weird. I would like to know how a non-admin account can use the Admin SDK. If you have any suggestions, please let me know. I'm developing an add-on for an elementary school using Google app script. I want to limit the API by…
0
votes
0 answers

AdminDirectory.Members.insert habitually rejecting @hotmail, @outlook and another email addresses with message: errorException: The email is invalid

I write one Script for add members to a Google Group. The data is write into my website, saved into Google Sheets and this sheet launch the script for add the member to the group. The code is working fine, but only in some cases. Generally, the…
A. Cedano
  • 557
  • 7
  • 39
0
votes
1 answer

Reports API : definition of Gmail Customer Usage parameter num_30day_active_users

I need clarification on the definition of num_30day_active_users. In the doc at [https://developers.google.com/admin-sdk/reports/v1/appendix/usage/customer/gmail] the note says: "The number of active user Gmail accounts in the past 30 days from the…
Nick Tonkin
  • 31
  • 1
  • 6
0
votes
2 answers

Working with strings in GCP-Workflows and GCP-Admin

I'm integrating a project in GCP-Workflows with GCP-Admin, but I'm having trouble working with some data, when extracting a date it is delivered in this format: 2020-12-28T11: 20: 05.000Z, so I can't turn the string into int, and apparently there is…
0
votes
1 answer

PUT or POST on the Google-Worflows and Google-Admin

I am integrating a project in GCP-Workflows with GCP-Admin, but I am having difficulty entering data in the Admin (I intend to set the field "" suspended ": true / false}). But the GCP-Admin accepts only the PUT and not POST, I checked in the…
0
votes
2 answers

Google Users: List users data of a specific group

I am in the need of listing the users data belonging to a specific group within the organization. The documentation does not specify if this is possible. I was really hoping there could be some kind of query that would allow this. For example email…
Morfinismo
  • 4,985
  • 4
  • 19
  • 36
0
votes
1 answer

Is it possible to use Google Admin SDK to remotely changing e-mail routing settings (advanced gmail settings)

Does anyone know if it is possible to edit central routing mail settings with google sdk admin settings API or any other API? Or in any other way 'remotely' without using the google admin UI? Specifically i'm interested in remotely editing the…
0
votes
2 answers

Can you help me with Google Workflow?

I'm getting the error: "in step "readGcpadmin": {"message":"HTTP body unsupported with: 'GET'","tags":["ValueError"]}" and I don't know how to solve it, here is the code with the hidden data below: - readGcpadmin: call: http.get args: url:…
0
votes
1 answer

Get IDs of deleted documents in firestore

I have a big collection with several thousand documents. These documents have subcollections with documents inside. Now I deleted a lot of the documents on the highest level. Structure: MyCollection => MyDocument => MySubcollection =>…
progNewbie
  • 4,362
  • 9
  • 48
  • 107