我正在尝试使用 Drive API 映射我的 Google Apps 域内的共享。我可以通过为用户创建服务然后执行类似的操作来获取用户的permissionId
about_info = service.about.get().execute()
permissionId = about_info['user']['permissionId']
但是,当我迭代一个被暂停的用户时,我得到:
401 Unauthorized : Invalid Credentials
对于被暂停的用户来说,有什么办法可以解决这个问题吗?
最佳答案
作为非挂起用户,请尝试 sharing a file with the suspended user然后retrieve the file's permissions确定被暂停用户的permissionId。
关于python - 谷歌云端硬盘 : Getting a Suspended users permission Id,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18061579/