Google Drive SDK:通过域超级管理员访问权限将用户的文件复制到其他用户 [英] Google Drive SDK: To copy files from a user to another user via Domain Super Administrator access right

查看:235
本文介绍了Google Drive SDK:通过域超级管理员访问权限将用户的文件复制到其他用户的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

说,我是一个域超级管理员。并且,有用户A(源 - 要从中复制的文件)和用户B(目标 - 要复制的文件)。有没有Google Drive SDK API可用于此功能?



当我阅读以下内容时: https://developers.google.com/drive/v2/reference/files/copy ,此API只允许复制到我自己的Google云端硬盘中。



请帮忙。

解决方案


  1. 使用域范围的委派模拟每个用户 https://developers.google.com/drive/delegation


  2. 作为源用户进行身份验证并与目标用户共享文件 https://developers.google.com/drive/v2/reference/permissions/insert


  3. 认证为目标用户并将源文件复制到生成目标用户拥有的文件的目标副本 https://developers.google.com / drive / v2 / reference / files / copy



Say, I am a Domain Super Administrator. And, there are User A (source - files to be copied from) and User B (destination - files to be copied to). Is there any Google Drive SDK API available for this feature?

When I read this: https://developers.google.com/drive/v2/reference/files/copy, this API allows only to copy into my own Google Drive.

Please help. Thanks.

解决方案

  1. Use domain-wide delegation to impersonate each user https://developers.google.com/drive/delegation.

  2. Authenticate as source user and share file with target user https://developers.google.com/drive/v2/reference/permissions/insert

  3. Authenticate as target user and copy source file to produce target copy of file owned by target user https://developers.google.com/drive/v2/reference/files/copy

这篇关于Google Drive SDK:通过域超级管理员访问权限将用户的文件复制到其他用户的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆