Jump to content
Welcome to our new Citrix community!
  • 0

Fetch Available/Used licenses of Citrix Cloud Endpoint Management via Rest-API


Question

Hello community!

I am trying to get the used license information via REST-API but unfortunately it is not working.

We already using REST-API with CEM to create enrollment invitations, selectivewipe devices add/remove users, etc which are really working well.

 

This is how we do it, after we got the BearerToken (Powershell)

$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"

$headers.Add("Authorization", "CWSAuth Bearer= my bearer token")



$response = Invoke-RestMethod 'https://licensing.citrixworkspacesapi.net/<CustomerID>/licenseservercustomermap' -Method 'GET' -Headers $headers

$response | ConvertTo-Json

I get the error: The customer, <CustomerID>, with identity mismatch, has no authorization on this action.

 

I tried to get the BearerToken via different urls: https://api-eu.cloud.com/cctrustoauth2/<customerID>/tokens/clients?customerid=<customerid> 

And I also tried to get it https://trust.citrixworkspacesapi.net/root/tokens/clients

 

But the result is always the same.

 

Can you help me out with this issue?

 

Kind Regards

Daniel

 

 

Link to comment

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...