[英]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.
谢谢你。
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).skuId
为1010340001
, Enterprise - Archived User
Business - Archived User
1010340002
为 1010340002(这些 ID 没有正式记录,只能使用经销商 API 间接检索,请参阅下面的文档缺失部分)。userId
would be the user's current primary email address. userId
将是用户当前的主要 email 地址。 If you don't want to retrieve a specific user, you can also list Licenses according to productId
and skuId
:如果您不想检索特定用户,您还可以根据
productId
和skuId
列出 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}
Archived User productId
and skuId
are not currently documented in the official API reference . 官方 API 参考资料中目前未记录存档用户
productId
和skuId
。 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.我建议您给问题加注星标,以便跟踪此事并帮助确定其实施的优先级。
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.