427 questions
0
votes
1
answer
71
views
How to use a Google Service Account with Admin SDK?
I would like to use the Members function of the Admin SDK of Google. I'm using PHP and Codeigniter 3. I created a Service Account in the Google Cloud Console.
My Codeigniter model:
use Google\Client ...
1
vote
0
answers
83
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
1
answer
106
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
0
answers
187
views
API Accessing using Domain Wide Delegation
I'm trying to use Google Workspace's Directory API to list users and running into problems with permissions. I get a 403 response with a message: "Not Authorized to access this resource/api"...
0
votes
0
answers
161
views
How to retrieve profile photos from the Google Contacts API?
The Google Contacts API has a few endpoints useful for getting contacts:
people.connections.list
otherContacts.list
people.listDirectoryPeople
otherContacts.list is the most useful: it includes ...
0
votes
1
answer
106
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 ...
0
votes
2
answers
220
views
How can I get the Google Role of the User?
I am setting up an web application on ASP .NET Core 5 with Google Auth. I want to be able to mark certain pages with an Authorize attribute to only allow users with a given Role to access.
The access ...
-1
votes
1
answer
966
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
687
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 ...
0
votes
1
answer
163
views
User Mailbox usage report from Google Workspace
I am trying to get a basic email usage report. We need to get user names and the size of their email boxes. The code provided below throws an exception
"<HttpError 400 when requesting https://...
1
vote
0
answers
122
views
Search for multiple users by email address using admin directory users.list Google API
I am trying to use the Admin Directory users.list API (https://developers.google.com/admin-sdk/directory/reference/rest/v1/users/list) to query multiple users with their email address.
I can do query=...
0
votes
1
answer
445
views
Google Directions Api Problem on optimisation
i am using directions api with some waypoints. the thing is that its not optimized, it goes with the order of my array and not with the most efficient order.
i dont want the order of my array to take ...
1
vote
1
answer
117
views
Delay of 30s after creating new user via Google Directory API necessary to see it via Google Classroom API?
I'm developing an API extension of our Woocommerce eshop. The task is to create a new Google Classroom user (if not yet existing) and add this user to the Course.
If the user does not exist yet, i ...
0
votes
1
answer
909
views
Create External Contact in Google Workspace Directory using Domain Shared Contacts API + Python
I cannot figure out how to create (make it visible for all) External Contact in Google Workspace Directory using Domain Shared Contacts API.
The idea is to create an external contact (directory-wide) ...
0
votes
1
answer
162
views
How can I delete admin role assignments from a user accounts using Google Admin API?
I need to delete role assignments from a list of user accounts. I am familiar with Google Apps Script, but need help working out the script needed to delete the role assignments using the Google ...