我有一个 Box Enterprise 帐户,并且启用了 Box 开发者功能。我能够创建一个 Box 开发人员应用程序,创建必要的身份验证,并将其用于非常简单的 Python 脚本,使用 SDK 创建文件夹、上传文件等。
但是,当我登录到我的 Box 帐户时,这些文件不存在,并且从 Python 中调用 API 时我也无法看到我的 Box 帐户中的其他文件。这个空间在哪里,我可以通过常规 Box 登录来访问它吗?
从 API 中,我可以进行调用来查看我所在的位置,但我不认识这个空间:
根文件夹所有者:AutomationUser_[string]@boxdevedition.com
根文件夹名称:所有文件
client.user(user_id='me').get().name:[我的应用程序名称,在我的 Box 开发控制台中]
最佳答案
每当在 Box 开发者控制台中创建新应用程序时,都会出现 Service Account是 created .
Service Accounts are not visible to standard Box Users as they do not represent an individual user, but rather an application. To view the content of a Service Account, an Administrator can use the Global Content Manager in the Box Admin Console to view the Service Account and all of its associated content.
要查看服务帐户的内容,
- 来自 https://app.box.com/ ,在左侧边栏中,转到“管理控制台”。 (Image)
- 转到内容管理器(第三个选项卡 - 文件夹图标 - https://app.box.com/master/content )。您将找到其中列出的服务帐户,您可以从中查看其内容。 (Image)
关于python - 盒子企业API : Where do my files "live"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48722548/