google-admin-sdk

AdminSettings API using service account in a C# Console application

﹥>﹥吖頭↗ 提交于 2019-12-13 06:48:54
问题 I'm trying to use the Google Admin Settings API with a Service Account with no success from a C# Console application. From what I've understood, I first have to get an OAuth token. I've tried 2 methods successfully for this: using Google.Apis.Auth.OAuth2.ServiceAccountCredentials or by creating manually the JWT assertion. But when I call an Admin Settings API with the OAuth token (maximumNumberOfUsers for instance), I always get a 403 error with " You are not authorized to perform operations

Get count of user documents in Google Drive

别等时光非礼了梦想. 提交于 2019-12-13 05:50:21
问题 How can I get the list of all users and the number of Google Documents they have in Google Apps using Google Script? Regards 回答1: If you're simply looking to list the users and the number of docs, you can use the reports API for Drive activity: https://developers.google.com/admin-sdk/reports/v1/reference/usage-ref-appendix-a/users-docs. Getting all users uses a similar service, and is practically written for you: https://developers.google.com/apps-script/advanced/admin-sdk-directory. 来源:

How to implement Incremental Authorization with Google API?

不想你离开。 提交于 2019-12-13 04:13:03
问题 I have an installed app that is a toolkit for the user, and as such they're able to choose their own scopes. I've run in to an issue with a scope limit when being passed as parameters via the URL. As such I'm looking to implement Incremental Authorization so that they only have to authorize scopes as they use them, and they don't have to also add scopes again from previous to overwrite. I'm using the GoogleWebAuthorizationBroker class to do the authorization, but I'm not seeing anything that

How to set user manager in Google Directory api

拥有回忆 提交于 2019-12-13 03:05:28
问题 I have a requirement to set the manager field on each User within my Google Apps domain. Previously I've used the API to update organisations, phones addresses etc. However, I do not see where to actually set/update the user manager field. I'm using the Java client library to update the user accounts. 回答1: When creating or updating a user, one of the properties is "relations", in that property you can add the relation with other users and the type of relation, in this case it would be

Directory API, User organizations- name field. Where does it come from?

百般思念 提交于 2019-12-12 18:24:33
问题 The Google Directory API https://developers.google.com/admin-sdk/directory/v1/reference/users/get returns following kind of organizations data for a User. However in the Apps Admin console I can not find where the corresponding organisations name "Company Title" is defined. From where does it come from or how to edit that data? This is also inconsistent, since for some Users in this same domain the "name" field is missing completely? "organizations": [ { "name": "Company Title", "title":

Maximum Size of patch to customSchemas?

大憨熊 提交于 2019-12-12 17:30:12
问题 I'm having an issue with the SDK. I followed this guide to get SSO with AWS. I'm able to add 4 roles using my code, but after that I get a 413. My schema contains all of the roles under the SSO role array. So, each patch I make requires me to resubmit the entire role array according to the docs: Note about arrays: Patch requests that contain arrays replace the existing array with the one you provide. You cannot modify, add, or delete items in an array in a piecemeal fashion. Python Snippet:

Google Drive SDK System.Net.Http.Primitives Version 1.5.0.0 instead of 2.1.10.0

时光毁灭记忆、已成空白 提交于 2019-12-12 15:55:26
问题 Just downloaded a fresh copy of google-drive-v2-rev82-csharp-1.4.0-beta.zip and added a reference to Google.Apis.Drive.v2.dll in my VS 2012 C# project. I also added references to all the dll's in the Lib folder of the zip file. When I run the project it complains that version 2.1.10.0 of System.Net.Http.Primitives was found when it expected version 1.5.0.0. I tried adding the following to App.config but it still crashes when ran: <runtime> <assemblybinding xmlns="urn:schemas-microsoft-com:asm

This document does not exist, it will not appear in queries or snapshots? Cloud Firestore

坚强是说给别人听的谎言 提交于 2019-12-12 13:31:16
问题 I'm quite new to Cloud Firestore (aren't we all?) and I've added some data to my db using the admin SDK in Node.js. It shows up on the console, but under the doc it says "This document does not exist, it will not appear in queries or snapshots." I'm not sure why this is? Here's a screenshot: 回答1: The key thing to realize is that just because you create a document at root_collection > root_doc > sub_collection > sub_doc does not mean there is actually a document at root_collection > root_doc .

Google Gmail API - Delegation settings

◇◆丶佛笑我妖孽 提交于 2019-12-12 07:21:43
问题 Apologies if this is covered elsewhere and I have missed it. Google's Email Settings API is deprecated and set to be turned off on July 7, 2017. With this date looming, I have started investigating migrating our local delegated account management web application to the new API. As you might expect, this applications allows users to list, add and delete delegate access to a Gmail account. It currently uses the OAuth 2.0 scope of. https://apps-apis.google.com/a/feeds/emailsettings/2.0/{domain}/

Admin SDK, Directory API, Users: list - Any PHP examples on how to do this?

假装没事ソ 提交于 2019-12-12 06:43:50
问题 Google Apps for Business linked to Apps Engine account Cloud Console -> Registered Apps -> {name} -> Web Application -> OAuth 2.0 ClientID Cloud Console -> Admin API (On) Google Apps Console -> Security -> API Access (checked) " -> " -> 3rd party OAuth -> API Clients ({ClientID}.apps.googleusercontent.com) " -> " -> " -> API Scopes (https://www.googleapis.com/auth/admin.directory.user) Here is what I have so far, require_once 'google/appengine/api/app_identity/AppIdentityService.php'; use