Reputation: 9
Is there a way to read "Archived User" (AU) license using License Manager API? If so, please provide an example of the request. Thank you.
Upvotes: 0
Views: 418
Reputation: 19309
You can either retrieve the License for a specific user, using LicenseAssignments: get.
In this case, you'll have to make the following request to this 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).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).userId
would be the user's current primary email address.If you don't want to retrieve a specific user, you can also list Licenses according to productId
and skuId
:
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. 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
. I'm assuming you're not asking how to go through the OAuth process, and you just need information on what methods to use.
Upvotes: 0