简体   繁体   English

如何使用许可证管理器获取存档用户许可证

[英]How to Get Archived User license using License Manager

Is there a way to read "Archived User" (AU) license using License Manager API?有没有办法使用许可证管理器 API 读取“存档用户”(AU) 许可证? If so, please provide an example of the request.如果是,请提供请求示例。 Thank you.谢谢你。

Retrieve specific user:检索特定用户:

You can either retrieve the License for a specific user, using LicenseAssignments: get .您可以使用LicenseAssignments 检索特定用户的许可证:get

In this case, you'll have to make the following request to this URL:在这种情况下,您必须向此 URL 发出以下请求:

GET https://www.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/user/{userId}

Where:在哪里:

  • productId should be 101034 (productId for Archived User) (this ID is not officially documented and can only be indirectly retrieved using Reseller API, see Documentation missing section below). productId应为101034 (封存用户的 productId)(此 ID 没有正式记录,只能使用经销商 API 间接检索,请参阅下面的文档缺失部分)。
  • skuId would be 1010340001 for Enterprise - Archived User and 1010340002 for Business - Archived User (these IDs are not officially documented and can only be indirectly retrieved using Reseller API, see Documentation missing section below).企业 - 存档用户的skuId1010340001Enterprise - Archived User Business - Archived User 1010340002为 1010340002(这些 ID 没有正式记录,只能使用经销商 API 间接检索,请参阅下面的文档缺失部分)。
  • userId would be the user's current primary email address. userId将是用户当前的主要 email 地址。

List for product or for product and SKU:产品或产品和 SKU 列表:

If you don't want to retrieve a specific user, you can also list Licenses according to productId and skuId :如果您不想检索特定用户,您还可以根据productIdskuId列出 Licenses :

GET https://www.googleapis.com/apps/licensing/v1/product/{productId}/users?customerId={customerId}
GET https://www.googleapis.com/apps/licensing/v1/product/{productId}/sku/{skuId}/users?customerId={customerId}

Documentation missing:文档缺失:

Archived User productId and skuId are not currently documented in the official API reference . 官方 API 参考资料中目前未记录存档用户productIdskuId There is currently a feature request regarding a documentation update:当前有一个关于文档更新的功能请求:

I'd suggest you to star the issue in order to keep track of this and to help prioritizing its implementation.我建议您给问题加注星标,以便跟踪此事并帮助确定其实施的优先级。

Note on authorization:授权注意事项:

Any of these methods would require getting authorized with the following scope: https://www.googleapis.com/auth/apps.licensing .这些方法中的任何一种都需要获得以下 scope 的授权: https://www.googleapis.com/auth/apps.licensing I'm assuming you're not asking how to go through the OAuth process , and you just need information on what methods to use.我假设您不是在询问如何通过OAuth 过程 go ,您只需要有关使用哪些方法的信息。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用许可证管理器API管理Google保险柜许可证 - How to manage Google Vault Licenses with License Manager API google enterprise许可管理器api-给定域的未经授权的操作 - google enterprise license manager api - Unauthorized operation for the given domain 查询 Google Workspace Enterprise License Manager API 时的问题 - Issues when querying Google Workspace Enterprise License Manager API 如何通过 Google Workspace 管理员 SDK 获得可用许可? - How can I get available license via Google Workspace Admin SDK? Google Workplace 已归档用户已暂停 - Google Workplace Archived user suspended 如何从管理员 SDK >> 使用 Appscript 报告 API 将已删除、存档、暂停的用户数据提取到 Google 表格 - How to pull deleted, archived, suspended users data to Google sheets from Admin SDK >> Reports API using Appscript 如何在Google Directory API中设置用户管理器 - How to set user manager in Google Directory api 如何使用 Google API 获取 Google Workspace 用户订阅 - How to get Google Workspace user subscriptions using Google API 如何通过google admin sdk获取部门和经理的email? - How to get department and manager's email through google admin sdk? 如何通过管理员 SDK 获得经理的价值 - How can I get manager's value via admin SDK
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM