admin-sdk

User Impersonation with Service Account using Application Default Credentials

别说谁变了你拦得住时间么 提交于 2019-12-12 05:16:58
问题 I'm trying to use a service account with domain-wide delegation (DwD) on an App Engine deployment with Go. I've followed the steps for using Google Application Default Credentials to use a service account with App Engine. I got the code running locally on my dev machine but I'm stuck at retrieving the actual data from my domain. I'm using the Admin SDK. Under the section Delegate domain-wide authority to your service account, it says that my "service account needs to impersonate one of those

How to add Admin SDK api to android project

不羁的心 提交于 2019-12-11 14:45:48
问题 I am currently working in an Android application that requires to have Admin and regular users. To illustrate, the admin has the ability to manage the regular users like delete , modify their contents. According to my reserch that firebase provide Admin SDK API that can be realy sutiable for this issue but according to thier documention that Admin SDK cannot be used in the Android project itself and should be placed in the server-side of the project. In addition, i was tried to add the Admin

Google API Data Transfer Insert: missing resource.applicationDataTransfer

六眼飞鱼酱① 提交于 2019-12-11 07:28:53
问题 I'm creating simple PHP script for transfering ownerships of drive files between users in the same domain. I want to use Admin SDK Transfers and Insert method. Google has documentation about transfers here I tried to transfer data through their webpage GUI and it went fine. What I can't do is how to make it work with PHP Client library. Let's say I have prepared object for creating requests to Transfers resource $transfers = new \Google_Service_DataTransfer($googleConnection);

Reset the login cookie by API

安稳与你 提交于 2019-12-11 05:46:01
问题 I wonder if there is any way to reset login cookies through the API. I know there is how to do this through the settings in admin. 回答1: There's no direct API for resetting the login cookie. There's a workaround idea from this SO post. For more info, you can also check this Google thread. 回答2: According to the G Suite forum, the only way to to do this is through a force password reset using Dito GAM on the user side. Related question from SE: Is it possible to reset sign-in cookies for all

How to get the list of members in a Google group in Google app script (Admin SDK)?

牧云@^-^@ 提交于 2019-11-27 06:29:56
问题 I would like to get a list of members in a Google group using Admin SDK. But im not getting how to do this. I found below link - https://developers.google.com/admin-sdk/directory/v1/guides/manage-group-members But I do not know how to use POST method in Google app script. Can someone please guide me with an example? UPDATED I got the output as below, But i would like to access each element (role,email) separately for each member of the group. Is that possible?? { "role": "OWNER", "kind":