All Questions
Tagged with google-admin-sdk javascript
47
questions
0
votes
1
answer
40
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 ...
1
vote
1
answer
1k
views
Google API to list users in directory
I am developing a user page to allow managers to create users by selecting a new user from a drop down list. I will like to populate the drop down with company users from Google directory. So this ...
-2
votes
2
answers
90
views
No Invitations ID [closed]
I have many google classroom invitations and I want to accept all of them through google app script using
Classroom.Invitations.accept("courseId");
but then I get no data back...
so I tried ...
1
vote
1
answer
137
views
AdminDirectory.Users.Photos.get returns photoData object instead of string - how to encode/show on webpage?
In Google Apps Script, I am using the AdminDirectory Api to get a user photo from the admin console.
The returned object shoud have a string containing the photo encoded as base64, but I can only get ...
0
votes
1
answer
71
views
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....
1
vote
1
answer
242
views
Picture missing from credential token with GSI
I have been using the new GIS library with the One Tap UX. I have followed all the steps outlined in the setup guide and the authentication works as expected, in fact I like the new flow; Nonetheless ...
0
votes
1
answer
136
views
Inserting ACL after creating Google Room Resource frequently throws error
I have a Google Cloud function which first creates a Google Room Resource using resources.calendars.insert method from the Google admin sdk,
and right after I try to insert an ACL using Acl: insert ...
-2
votes
4
answers
68
views
No Invitations ID for Google Classroom using App Script
I have many google classroom invitations and I want to accept all of them through google app script using
Classroom.Invitations.accept("courseId");
but then I get no data back...
so I tried ...
0
votes
1
answer
246
views
Script to transfer user data to (for example, a [email protected]) after deleting a user account from G Suite Admin SDK
I'm trying to develop a google script to transfer user data to (for example, a [email protected]), after deleting a user account from G Suite Admin SDK.
I've tried and am unable to find it anywhere the ...
0
votes
1
answer
1k
views
Automate user creation using google app script in Google Admin SDK
I want to automate user creation in google as an Admin where I use app script to do it, however from the documentation I'm reading I'm not quite sure if I'm doing it right since I'm getting some ...
1
vote
1
answer
102
views
Chrome App Development and Google Workspace Admin SDK
I am building a Chrome web extension app that will allow me to check whether all users in some Google workspace have some settings enabled.
I am not the owner of any of these workspaces, so I will ...
1
vote
1
answer
399
views
Error Updating a Chromebook's Organizational Unit with Google Script
I have been experiencing an issue recently with a Google Script code I wrote to update a few Chromebooks' organization units.
Here is a portion of the code that I am running:
let admin = ...
1
vote
1
answer
2k
views
Delete user using firebase Admin SDK
How do I delete a user from my admin panel using the firebase Admin SDK? I'm getting this error when trying to delete it:
Uncaught (in promise) ReferenceError: uid is not defined
at eval (...
0
votes
2
answers
43
views
How to return if condition from Google's AdminDirectory
I'm trying to return different results for respective google workspace users, the problem I'm facing is... the first answer is returning all users.
E.g. William Tell and John Peter gets the return of ...
2
votes
1
answer
253
views
Getting the most recent date & action for each user using AdminReports.Activities.list
I have a requirement to get the most recent activity for each user in the domain within Google Currents (formerly, Google plus)
I am using AdminReports.Activities.list for this, using the 'all' ...