1,571 questions
0
votes
0
answers
69
views
Google Script Cannot Fetch Users With Licenses (Via SKU ID)
I have recently gotten into Google Scripting to manage a School's IT space. I am currently working on a script that should check any students who have left and remove their paid licenses. However, I ...
0
votes
0
answers
70
views
Activities.Watch() gives me the 'sync' event only
I want to get notifications when an admin adds a user in a group in Google Workspace. And I call the Watch method to do it:
var channel = new Google.Apis.Admin.Reports.reports_v1.Data.Channel
{
...
1
vote
0
answers
67
views
How to get email address of Matter owner?
I am working with the Google Vault API in C# and need to retrieve the email address of the user who created a Matter (i.e., the owner). Specifically, I want the email address to be visible when:
...
2
votes
0
answers
116
views
How can I retrieve Google Classroom audit logs programmatically (without Admin Console)?
Is it possible to automatically retrieve Google Classroom audit logs via an API or similar method, instead of downloading them manually from the Admin Console?
I initially thought I could use the ...
0
votes
1
answer
123
views
Data Transfer API 401 error with service account (Domain-wide Delegation), but Directory API works
I'm trying to use a service account with domain-wide delegation to transfer Google Drive data between users in my Workspace domain.
The service account works fine with Directory API, but the Data ...
1
vote
1
answer
155
views
How to restrict access of a service account to only specified user(s) in google workspace?
I'm developing an application that needs to read and label emails from a single, specific mailbox that is a part of a google workspace.
I managed to connect a service account to the workspace using ...
0
votes
1
answer
72
views
To managed the field "description"
I have written the following script to manage my User.
In the debugger I can see the field I want to address, but how can I access this field via script or how can I edit it?
function getAllUsers() {
...
0
votes
2
answers
156
views
google admin api for Node, users.list fails with http 400: GaxiosError: Invalid Input
I can run the users.list query and get the data response on the Api explorer for the Directory API (https://developers.google.com/workspace/explore?filter&discoveryUrl)
and the Javascript query ...
0
votes
0
answers
74
views
ChromeOsDevices List ignores "&fields=" parameter
I'm trying to filter the fields that I get back from the chromeOsDevices api when listing devices.
I think this used to work.
GET
{{baseUrl}}admin/directory/v1/customer/my_customer/devices/chromeos?...
0
votes
0
answers
82
views
Google Admin SDK Reports API - HttpError 401 "Access denied" despite domain-wide delegation
I am trying to access the Google Admin SDK Reports API using a service account, but I keep getting the following error:
HttpError 401 when requesting https://admin.googleapis.com/admin/reports/v1/...
0
votes
1
answer
60
views
Setting a Google user's Building ID: Locations property throws exception: "Required parameter: [resource.location.field[0].Value]"
I'm trying to set a new user's Building id using the .NET Google Admin SDK. I'm using the Locations property to do that.
Here's Building id in the Google Admin Console:
And in my code:
var newUser = ...
0
votes
1
answer
74
views
Unable to Retrieve API Clients and Assigned OAuth Scopes via Google Admin SDK in C# .NET
I am currently working on a C# .NET application that leverages the Google Admin SDK to manage administrative tasks within our organization. As part of this implementation, I require a method to ...
0
votes
0
answers
69
views
ChromeOS Kiosk links in Google Admin Console keep fetching old version
To verify the issue, I added a simple empty HTML page, just displaying icon and title,
to Google Admin Console "Kiosks", under menu: “Devices“ - “Chrome“ - “Apps & Extensions“.
However, ...
0
votes
1
answer
116
views
FCM with Php and Admin-sdk. Shows firebase sdk class not found
I used composer to install firebase admin-sdk with command composer require kreait/firebase-php
The resulting downloaded folder structure had
vendor/kreait/firebase-php , vendor/kreait/clock,
vendor/...
0
votes
2
answers
206
views
Filters Not Functioning for Admin Application Logs in Google Admin SDK
I am using the Google Admin SDK (Reports API) in a C# .NET console application to retrieve logs for the Admin application. While the API supports filters to refine the results, none of the filters ...
0
votes
1
answer
63
views
Getting "Error: Not Authorized to access this resource/api" when trying to create google groups through Firebase functions
I am trying to create a unique google group every time a new entry is created in the firestore database using google admin api within firebase functions.
The onCreate function within the functions ...
-5
votes
1
answer
345
views
AdminReports is not defined in Google Apps Script
I’m trying to create a script in Google Apps Script to edit/create reports and view them using the Admin SDK. I started with this documentation. However, the example script provided doesn’t work, and ...
1
vote
1
answer
74
views
How do I iterate over the paginated list returned by Google Admin SDK UsersService.List?
So I am reading a paginated list of users successfully from the Admin API. I can see the NextPageToken as well as the first page of results. But there seems to be nothing in the returned UsersListCall ...
2
votes
2
answers
321
views
Google Workspace Admin SDK Email Log Search Reports API: How to retrieve email delivery status?
I'm using the Google Workspace Admin SDK Reports API - Email Log Search in Node.js to retrieve email logs for messages sent from my domain. I'm able to get details like:
Sender email
Recipient email
...
0
votes
1
answer
195
views
How to add a value to a new, blank custom field in customSchema
I'm trying to add a value to a custom field within a customSchema using Google Apps Script. Whether I add the customSchema using the Google Admin Console, or through Apps Script, I run into the same ...
2
votes
1
answer
446
views
How to add data to a new Custom Attribute e.g. customSchema?
I'm trying to use Google Apps Script to copy a value from a default Google field to a custom attribute that I created in the Google Admin console. As seen by the API, this is a customSchema.
I can't ...
0
votes
1
answer
84
views
Google Admin API stopped returning custom schemas with projection='full'
I have written a script to pull google user data using the python googleapiclient package which needs include a custom schema so I have included projection='full' in the api call.
This was working ...
1
vote
1
answer
219
views
Google Directory API - 403 [Not Authorized to access this resource/api] for Method: roles.list
I am using Google Directory API .NET Client to fetch a list of roles in a domain (https://developers.google.com/admin-sdk/directory/reference/rest/v1/roles/list).
I use a service account to ...
5
votes
2
answers
380
views
Can we get Workspace Customer ID through API for non-SuperAdmin users?
There is a value called Customer ID in Google Workspace, which will be unique for every Workspace. You can find this value in Google Admin Console -> Account -> Account Settings -> Profile -&...
0
votes
0
answers
87
views
How to customize the name of the organization in the "Sign In With Google" initial page?
In the sign in with Google, the immediate page has a text "Choose an account to continue to something.com". That "something.com" is by default the domain of the authorization ...
0
votes
0
answers
180
views
Find organizational unit / orgUnitPath of current non-admin user
Is there a way to find the organization of the current user in a Google Apps Script without granting the user itself any special / admin permissions in the Workspace?
For background, the ...
0
votes
0
answers
141
views
Why is OAuth2 Token missing scopes?
I'm trying to get a list of users in a google test domain.
Using Powershell and PSGSuite. I'm trying to work through the process.
I've created a project added the Admin API enabled the following ...
1
vote
0
answers
80
views
Getting Forbidden trying to use Google Directory Services API
I keep getting Forbidden while trying to access Google Directory Services API. I am attempting to access via a Service Account.
I have enabled Admin API and Directory Services API
I have specified ...
1
vote
2
answers
140
views
Update addresses for Google users via apps script
I have written a small script with which I can assign a new work address to a Google user via Google Apps Script. The script also runs without errors and if a value is already stored in the field for ...
1
vote
1
answer
105
views
Service account not Authorized to access this resource/api while trying to access directory api though Domain-Wide Delegation Enabled
I'm trying to connect to the Google Directory API (REST Resource: users) via Airflow. I want to get a list of users within the organizational google workspace as well as update some attributes.
I want ...
0
votes
1
answer
220
views
How to access rules in content compliance in gmail setting , google workspace admin console , "PROGRAMMATICALLY"
I need to programmatically access the content compliance rules set in the Gmail settings from the Google Workspace Admin Console.
Could you please advise if there is an available API or any other ...
0
votes
1
answer
142
views
Google Workspace SDK Review problems with scopes
I am attempting to publish an external Sheets Editor Add-on in Google Workspace Marketplace. The app is developed in Apps Script and uses the scopes below shown further below.
The Workspace Oauth ...
1
vote
1
answer
206
views
How to find whether a group is dynamic or not from the Google Admin Sdk Api?
I have tried checking the group response(https://developers.google.com/admin-sdk/directory/reference/rest/v1/groups) from the Google Admin Sdk Directory Api but couldn’t find any property which could ...
0
votes
1
answer
105
views
Is there a way to fetch a list of computer assets from google workspace directory API?
I'm trying to fetch a list of computer assets (Linux, macOS, and Windows) from the Google Workspace Directory API but haven't found any relevant documentation. In the available documentation, there ...
1
vote
1
answer
88
views
Google Chrome Roles/Privileges API's are not accessible to non-super admin role user
I am trying to invoke below Google Chrome API's with non-super admin user
https://admin.googleapis.com/admin/directory/v1/customer/customer_id/roles
https://admin.googleapis.com/admin/directory/v1/...
-1
votes
1
answer
91
views
Admin SDK licensing API and getting error
I am getting error: HttpError 400 when requesting https://licensing.googleapis.com/apps/licensing/v1/product/Google-Apps/sku/1010060001/user/prasanjit.swain%40zebra.com?alt=json returned "Invalid ...
0
votes
1
answer
105
views
Google notification api for groups
so i am using google users api, so for users whenever there is a change there is https://admin.googleapis.com/admin/directory/v1/users/watch api with which i can register my url and once registered i ...
0
votes
1
answer
94
views
Google.Apis.Admin.Directory.directory_v1 : combination of service account, domain-wide delegation and user impersonation needed for UpdateUser?
Here is a code to repro and screenshots to demonstrate the impersontead user permissions
The readUser is working but not the updateUser => why ?
Please note that I have waited 1 day between the ...
0
votes
0
answers
41
views
VS NuGet Google.Apis.Admin.Directory.directory_v1 How extract delegates
The context is Google API (Admin SDK API).
My question is: Using nuget package Google.Apis.Admin.Directory.directory_v1 is possible to extract a list of delegates for single user?
I tryed this code, ...
0
votes
2
answers
101
views
How can i automate export of all users and status (Active, Suspended, Archived) on GWS and then have the report sent to a list of users
Im trying to automate user reports on my Google workspace account showing their statuses and have the report sent via email to a list of recipients monthly.
I am trying to get all users with their ...
1
vote
0
answers
29
views
User Rename events via the admin sdk are not showing in Workspace Admin Console Investigation Tool Logs
Is anyone else having this issue?
We have a 3rd party application that we use for user provisioning and deprovisioning.
When the application deletes a user it first renames the user.
For example if it ...
0
votes
1
answer
197
views
Is it safe to add the Google firebase admin sdk json file to c# WPF application this way?
I create a WPF application to connect to Google firestore database and everything works fine.I create the firebase admin sdk json file in firebase console:
enter image description here
Then in WPF ...
0
votes
1
answer
204
views
How to assign Google Workspace licences using Appscript and a Service Account (SA)?
Is there a way to assign a Google Workspace Business Standard Licence to a user of a domain, using Appscript and a service account, but without having to use the rights of the user executing the ...
0
votes
1
answer
240
views
How to manage archived accounts in Google Workspace?
I am very new to the Google world and trying to get some automation done to see if the below would work in App-script. I am also not a Java guy, so I try my best. We use Okta as our SSO. Once a user ...
0
votes
0
answers
126
views
Getting Google Admin SDK API Token with HTTP request
I've been getting an Authentication error every time I make an HTTP request via Python.
{
"error": {
"code": 401,
"message": "Request is missing required ...
1
vote
2
answers
291
views
Unable to Access User Data Using Google Admin SDK Directory API with Service Account
I'm encountering an issue while attempting to access user data using the Google Admin SDK Directory API with a service account. Here's the scenario:
I have a Python script that utilizes the Google ...
0
votes
1
answer
108
views
create notification channel using google-api-php-client
I want to create a notification channel so that each time a user is deleted from my workspace my php app gets notified, I'm using the following
<?php
namespace App\Services;
use App\Models\...
0
votes
0
answers
123
views
Google Device Deletion using Google App Script
Does anyone have experience deleting the device in Google using Google App Script?
We want to delete the device which is not synced within 60 days.
The reason we need to create a script is that we don'...
-1
votes
1
answer
950
views
Google workload identity federation to call directory API
I'm trying to set up Google Identity Federation with AWS to make admin.directory API calls from aws lambda function. It is written in Java.
I set up workload pool, created service account and ...
2
votes
1
answer
683
views
C# Google API for requesting a list of users returns "badRequest"
I have been looking for information on this for a couple days now. I believe I have everything relevant to the API set up correctly for access but I keep getting this error:
The service admin has ...