This probably won't help you, but you can easily get this information using ICWS. I only use ICWS and like it very much.
For example, to check for a users additional licenses and if they are active:
GET http://icserver:8018/icws/SessionId/configuration/users/username?select=licenseProperties.additionalLicenses
You can use this to Query any licnese you need.
You will get a JSON reponse like this:
{
"configurationId": {
"id": "username",
"displayName": "Display Name of User",
"uri": "/configuration/users/username"
},
"licenseProperties": {
"additionalLicenses": [
{
"id": "I3_ACCESS_RECORDER",
"displayName": "Interaction Recorder Access",
"uri": "/configuration/license-allocations/I3_ACCESS_RECORDER"
}
]
}
}
------------------------------
Egill Palsson
Advania Sverige AB
------------------------------
Original Message:
Sent: 11-20-2020 05:39
From: Ali Koyuncu
Subject: Value of AssignableAllowedCount Returns 0
Hi,
I am trying to retrieve the License Allocation.
Following is my code:
static void GetLicenseAllocation(Session session) { ConfigurationManager configurationManager = ConfigurationManager.GetInstance(session); var LicenseList = new LicenseAllocationConfigurationList(configurationManager); List<FilterDefinition<LicenseAllocationConfiguration, LicenseAllocationConfiguration.Property>> filterDefinitions = new List<FilterDefinition<LicenseAllocationConfiguration, LicenseAllocationConfiguration.Property>>(); QuerySettings<LicenseAllocationConfiguration, LicenseAllocationConfiguration.Property> watchSettings = LicenseList.CreateQuerySettings(); watchSettings.SetFilterDefinition( new GroupFilterDefinition<LicenseAllocationConfiguration, LicenseAllocationConfiguration.Property>(filterDefinitions)); LicenseList.StartCaching(watchSettings); ReadOnlyCollection <LicenseAllocationConfiguration> list = LicenseList.GetConfigurationList(); Console.WriteLine("License Allocation\n"); foreach(LicenseAllocationConfiguration item in list) { Console.WriteLine($"{item.ConfigurationId}\t{item.AssignableAllowedCount.Value}\t{item.AssignableConfiguredCount.Value}"); // \t\t1{item.AssignableAllowedCount.Value}\t{item.ConcurrentConfiguredCount.Value} } LicenseList.StopCaching(); //LicenseAllocationConfiguration licenseAllocationConfiguration = LicenseList. }
item.AssignableAllowedCount.Value and item.AssignableConfiguredCount.Value return zero (I have checked Interaction Administrator. Assignable Allowed Count of licenses are NOT zero).
Could you please tell me what missing is?
Thank you in advance.
#ArchitectureandDesign
#AskMeAnything(AMA)
#Implementation
#Integrations
------------------------------
Ali Koyuncu
Asseco SEE Bilisim Teknolojileri A.S.
------------------------------