[英]GSuite Vault API: Any way to get a list of users on hold programmatically?
Currently, the Google Vault API does not provide a way to get a report of all users in a G-Suite tenant or domain who are on hold in one or more matters.目前, Google Vault API没有提供一种方法来获取 G-Suite 租户或域中所有用户在一个或多个事务中处于搁置状态的报告。 This information is currently available only via the admin interface for Google Vault under Reports/User Holds.
此信息目前只能通过Google 保险柜的管理界面在报告/用户保全下获得。 It would be great to be able to obtain this report via an API call in JSON format rather than only via the admin UI.
能够通过 JSON 格式的 API 调用而不是仅通过管理 UI 获取此报告会很棒。 Am I missing something or is this functionality already available?
我错过了什么还是这个功能已经可用?
Respectfully, please keep in mind that suggesting that I perform API operations to search all matters and iterate through the users on hold in each matter to obtain this information is not the answer I am looking for.请谨记,建议我执行 API 操作来搜索所有事项并遍历每个事项中被搁置的用户以获取此信息,这不是我要寻找的答案。 There should be a quicker, more efficient way to get this information since such a report is already available via the UI.
应该有一种更快、更有效的方式来获取这些信息,因为这样的报告已经可以通过 UI 获得。 I am simply asking if there is a way to get this same information programmatically via the APIs/automation.
我只是在问是否有办法通过 API/自动化以编程方式获取相同的信息。 Thank you in advance.
先感谢您。
Unfortunately, Vault API does not have a method for that.不幸的是,Vault API 没有相应的方法。 The only way to retrieve this information is to list all matters and iterate through them, as you already mentioned.
正如您已经提到的,检索此信息的唯一方法是列出所有事项并遍历它们。
It's not uncommon for a feature to be present only in the UI.一个功能只出现在 UI 中的情况并不少见。 If you want to see this implemented on the API, I'd suggest you to report it on Issue Tracker's Vault component .
如果你想在 API 上看到这个实现,我建议你在问题跟踪器的Vault 组件上报告它。
I looked through the issues of this component, and it looks like this hasn't been requested yet.我查看了这个组件的问题,看起来还没有被请求。 There's currently a somewhat related feature request, but not exactly what you're looking for:
目前有一个有点相关的功能请求,但不完全是你要找的:
The original poster filed a feature request in Issue Tracker.原始发布者在问题跟踪器中提交了功能请求。 I'm add this to the answer in order to give it more visibility.
我将此添加到答案中,以提高其可见性。
To anyone who would like to see this feature implemented in the future, I'd suggest starring the issue (star on the top-left) in order to help prioritizing it:对于希望在未来实现此功能的任何人,我建议为该问题加注星标(左上角的星号)以帮助确定其优先级:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.