google-admin-sdk

How to get a list of G Suite users which are using Google Apps Script?

安稳与你 提交于 2021-02-15 07:47:33
问题 I would like to find out, is there any chance to get a list of G Suite users (of one domain) who are using Google Apps Script? 回答1: After you retrieve the list of script projects from Google Drives of your users, you will have to first request project metadata for them from the Apps Script API. Presently, the only way to get a project is to go one by one, supplying requests with scriptId . The trick is that the Id of the script project file happens to be the the same as script Id (if you look

Limiting google directory groups APIs to caller's own groups

只愿长相守 提交于 2021-02-11 14:52:29
问题 We are doing a web app for our internal organization use. We need to check members and their roles for a particular group from our backend. Our google administrators are not providing us domain wide access to google admin APIs, mentioning it would be a security loop hole. We would like to fetch the members and their roles only for the group(s) in which the authenticated user or service account is owner/manager. Is it possible without domain wide access? Alternatively, in web front end is it

Limiting google directory groups APIs to caller's own groups

两盒软妹~` 提交于 2021-02-11 14:50:22
问题 We are doing a web app for our internal organization use. We need to check members and their roles for a particular group from our backend. Our google administrators are not providing us domain wide access to google admin APIs, mentioning it would be a security loop hole. We would like to fetch the members and their roles only for the group(s) in which the authenticated user or service account is owner/manager. Is it possible without domain wide access? Alternatively, in web front end is it

How to execute Data Transfer API?

陌路散爱 提交于 2021-02-11 14:21:49
问题 I have few accounts where I need to transfer the ownership to another account. I have the list listed in google sheets with all the email addresses. I am using the code below to hopefully execute it but I am not sure what to use to execute the code. I appreciate your time and help! TIA! function dataTransfer() { var ss = SpreadsheetApp.openById("SHEETID") var sheet = ss.getSheetByName("SHEETNAME"); var start = 2; var end = sheet.getLastRow(); var range = sheet.getRange(start,1,end,sheet

How to execute Data Transfer API?

…衆ロ難τιáo~ 提交于 2021-02-11 14:20:38
问题 I have few accounts where I need to transfer the ownership to another account. I have the list listed in google sheets with all the email addresses. I am using the code below to hopefully execute it but I am not sure what to use to execute the code. I appreciate your time and help! TIA! function dataTransfer() { var ss = SpreadsheetApp.openById("SHEETID") var sheet = ss.getSheetByName("SHEETNAME"); var start = 2; var end = sheet.getLastRow(); var range = sheet.getRange(start,1,end,sheet

Is there a way to retrieve all groups for a member as a Non Admin in the Google Directory API?

一个人想着一个人 提交于 2021-02-08 10:35:14
问题 I am working with the Google Directory API to retrieve all of the groups that a person is part of for role based privileging in the app I'm working on. https://developers.google.com/admin-sdk/directory/v1/guides/manage-groups#get_all_member_groups Our Admin is able to successfully retrieve a list of groups that he is a part of, using the API Explorer, but I am not. I am getting the error below and I'm assuming it is because I am not an Admin. { "error": { "errors": [ { "domain": "global",

Firebase index.php

偶尔善良 提交于 2021-02-05 07:48:30
问题 I create project on Google Firebase, everything goes perfect uploading my web on Firebase hosting, but index.php doesn't work, just index.html . So I tried to install PHP through Node.js and Admin SDK, but it still doesn't work... I tried to read the documentation, but I am a beginner in programming and this documentation kills me... First time I try this: https://firebase-php.readthedocs.io/en/latest/overview.html After: https://firebase.google.com/docs/admin/setup#add_firebase_to_your_app

Why does a service account with delegated domain access still need impersonation?

痴心易碎 提交于 2021-02-04 15:11:15
问题 I am considering using OAuth 2.0 service accounts and domain-wide delegation of authority to integrate our service with Google Apps. A particular use case is: When Google Apps customer signs up for our service, pre-provision our service leveraging the customer's existing org structure or resources (orgunits, groups, devices, users, folders, files, etc.). When the customer's Google Apps resources change, synchronize applicable changes to our service. I found that when using service accounts, I

G Suite Admin API to access drive of all users

十年热恋 提交于 2021-01-28 05:36:05
问题 I need to access all the files from the google drive account of all the G Suite user account from admin account. Using Google Apps Admin SDK API, I can access information of all account but unable to access their Drive. I have seen admin can access google drive of all the users by admin console UI, but unable to find API for same. I can access google drive from individuals access token with this API, but not of all users by admin token. Can anyone please help me into this? 回答1: For this you

NextPageToken gives invalid input error, 400 - Google Directory API ChomeDevices

别来无恙 提交于 2021-01-28 05:05:53
问题 I have to fetch 250K chromebooks from google workspace (Gsuite), I am using Admin Directory API to retrieve JSON data from Google. The response returns in chunks of 200 records, in the response is included a nextPageToken , I use that next page token to retrieve the next 200 and so on. After an hour, of using the nextPageToken attached from the previous request, However Google returns with error 400, {error_code: 400, "message"=>"Invalid Input: CMiJhq7-5ewCEp0BCm737N8GN......"}, Note: This