获取Google云端硬盘中的用户文档数量 [英] Get count of user documents in Google Drive

查看:78
本文介绍了获取Google云端硬盘中的用户文档数量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Google Script获取所有用户列表以及他们在Google Apps中拥有的Google文档数量?

How can I get the list of all users and the number of Google Documents they have in Google Apps using Google Script?

致谢

推荐答案

如果您只是想列出用户和文档数量,则可以将报告API用于Drive活动:

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.

获取所有用户都使用类似的服务,并且实际上是为您编写的: https://developers.google.com/apps-script/advanced/admin-sdk-目录.

Getting all users uses a similar service, and is practically written for you: https://developers.google.com/apps-script/advanced/admin-sdk-directory.

这篇关于获取Google云端硬盘中的用户文档数量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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