google-api

Restrict Google+ Sign-In to specific Apps Domain

霸气de小男生 提交于 2021-02-17 03:17:22
问题 Currently using the OAuth server side one-time-code flow, discussed here: https://developers.google.com/+/web/signin/server-side-flow Works perfectly for google login. I want the ability, though, to limit this login to only work for users that belong to a specific apps domain. Is there any way to enforce this through the api? OR am I limited to only doing this on my end after google authentication by regexing the email domain? (I would like to avoid this). Thanks! 回答1: There is no support for

People API - QUOTA_EXCEEDED / FBS quota limit exceeded

ぃ、小莉子 提交于 2021-02-17 02:11:30
问题 The google people api page says correctly how to authenticate and list 10 example contacts and everything works perfectly: https://developers.google.com/people/quickstart/python I can authenticate and list 10 perfectly but I'm having an error when trying to create new contacts. The api is returning me the following error: HttpError: <HttpError 429 when requesting https://people.googleapis.com/v1/people:createContact?alt=json returned "Resource has been exhausted (e.g. check quota).". Details:

“Error 403: access_denied” from Google authentication web api despite google account being owner

你说的曾经没有我的故事 提交于 2021-02-16 13:28:08
问题 I'm using the default code provided from google here, and I don't quite understand why its not working. The code outputs the prompt Please visit this URL to authorize this application: [google login URL] . When attempting to log in with the account designated as owner of the script under the google developers console I get a Error 403: access_denied error with the message The developer hasn’t given you access to this app. It’s currently being tested and it hasn’t been verified by Google. If

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

Custom Formula to look at a different GSheet

北城余情 提交于 2021-02-11 17:53:44
问题 I am still trying to wrap my head around using script, so my apologies if this is basic. I have a summary Spreadsheet that pulls values from hundreds of other documents. This used (too many) importrange formulas, but many of these are now #REF or ...Loading. I am trying to create a custom formula that will mimic the importrange function and return the values. I thought the hard part would be getting the formulas to update when another document was updated, but I have fallen right at the start

Insufficient authentication scopes error for Google Sheet API for iOS

落爺英雄遲暮 提交于 2021-02-11 17:01:28
问题 I'm trying to fetch a Google Sheet with the Google Sheets API for iOS. I've successfully added the user authentication since it's no longer asking for an API key, but I'm now getting a 403 error for: Request had insufficient authentication scopes*. I've added the following scopes in the Google Developers Console. /auth/drive /auth/spreadsheets And here's the code I'm using to make and execute the query. let potentialShowSheetID = "1n4wvD2vSSiAnG_pnD9rWR6dNCSnZz0pAGAiSYRaJCKs" let service =

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

Google Drive Access - Service Account or OAuth - To read/write user files

霸气de小男生 提交于 2021-02-11 14:30:49
问题 I have a .NET console application that performs operations on files. I would like to allow clients to give us access to their Google Drive accounts so we can read and write files. Our console application runs as a service so there is no way for the user to interact with it and authorize our access to their Google Drive account. I was looking at using a Google Service Account for application level authentication until I learned that a Service Account does not have access to the Google Drive

Google Drive Access - Service Account or OAuth - To read/write user files

自作多情 提交于 2021-02-11 14:28:54
问题 I have a .NET console application that performs operations on files. I would like to allow clients to give us access to their Google Drive accounts so we can read and write files. Our console application runs as a service so there is no way for the user to interact with it and authorize our access to their Google Drive account. I was looking at using a Google Service Account for application level authentication until I learned that a Service Account does not have access to the Google Drive