google-directory-api

How to plot polylines in multiple colors in R?

旧城冷巷雨未停 提交于 2021-02-10 06:42:07
问题 I'm working on a custom route planner in R at the moment. I'm using the output of the Google Maps Directions API. I want to show the route on a map between two places. Everything is going great so far. The only problem is that I don't know how to give the route multiple colors based on Speed at the moment. I searched the internet for a few days and I couldn't find something that fits my goal. That's why I made this post. Then I visualized it in Leafet with te following code: #install.packages

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

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

Getting 'Missing required field: member' when trying to add a member to a google group via API

江枫思渺然 提交于 2021-01-27 13:54:06
问题 Trying to use Google admin directory API in order to read members of a google group (organization) - it works fine. When I try to add a member I get: { errors: [ { domain: 'global', reason: 'required', message: 'Missing required field: member' } ], code: 400, message: 'Missing required field: member' } I've googled the error and found questions like this, this and a few other unhelpful results. I checked and it's definitely not a missing scope nor permissions. #!/usr/bin/python import

what are the google APIs to manage policies to block/restrict add-in(s) in google/Gsuite

梦想的初衷 提交于 2020-11-29 21:27:22
问题 I have a requirement to block/restrict specific add-ins for user(s) in accessing. I could able to block add-ins using google admin portal ( Security -> API Control), which solves the problem but instead of doing this manually, I would like to automate the same using google APIs. I tried to explore users, tokens, etc APIs but could not find an option. Appreciate if you can suggest an option to achieve this functionality through API. Providing more details for better understanding: To get the

what are the google APIs to manage policies to block/restrict add-in(s) in google/Gsuite

半世苍凉 提交于 2020-11-29 21:09:01
问题 I have a requirement to block/restrict specific add-ins for user(s) in accessing. I could able to block add-ins using google admin portal ( Security -> API Control), which solves the problem but instead of doing this manually, I would like to automate the same using google APIs. I tried to explore users, tokens, etc APIs but could not find an option. Appreciate if you can suggest an option to achieve this functionality through API. Providing more details for better understanding: To get the

gsuite service account for directory api returns http 400 errors: Bad request/Invalid input

百般思念 提交于 2020-07-19 06:42:18
问题 I have started to develop some apis to create users in my G suite directory. I followed the service account tutorials along with the Directory tutorials for python. The code I have is very simple just to test out how it will work. from google.oauth2 import service_account from googleapiclient.discovery import build SCOPES = ['https://www.googleapis.com/auth/admin.directory.user'] SERVICE_ACCOUNT_FILE = 'file' creds = service_account.Credentials.from_service_account_file( SERVICE_ACCOUNT_FILE,

Missing photos in Google Admin Directory Users response

末鹿安然 提交于 2020-06-17 04:59:12
问题 I'm using the Google Admin Directory Users endpoint to retrieve all the users in our company's domain. The request is working as expected and I'm receiving the full list of users. But a large number of users are missing photos. The thumbnailPhotoUrl property is present on each user entry, but following the URL leads to https://ssl.gstatic.com/s2/profiles/images/silhouette200.png which is the default avatar, for a large number of our users. However: If I go into Inbox and send one of the users