I'm trying to delete named CALs via an API for users that have left the business but struggling.
Fully aware of the license agreement that licenses can't be reallocated around the business whilst the employee still works here. To be clear, these licenses are assigned to people who have left the business so I am fully with the terms of agreement to reassign them (This always seems to be the response when I've been searching the community on this subject).
After several days, I have a list of Named User CALS along with a list of all users in Active Directory. I've compared the lists and now have my list of Named User CALS that are not in AD and therefore left the business.
I am using QV12.10 and my list of leavers is stored in a variable list called resultsLeavers. I've only started looking at C# language three weeks ago so very much at basic level!
Any help out there? Somethings I've read state that the removal of user CALS in QV12 is not available via an API.
If all else fails, at least I have the list of leavers and we can manually go through and delete them. I just wanted an automated monthly process to make it easier.
1. Using Google chrome you can capture the function via the developers tools 2. capture the delete via Network / Headers (meaning you can capture the Delete command in the Network> Headers section of the developer tool )
C. Identified Users To use a Named User CAL or Document CAL, the user must be identified via an authenticated user name (Windows Active Directory or through a ticket exchange between the web server and QlikView Server). The two methods of identification cannot be mixed on the same QlikView Server. An IP address is not a valid form of user identification. Note that the user name identification requires Windows authentication on AJAX clients, since machine name identification cannot be used for these clients.
Named and Document CALs are assigned to an identified user and may not be transferred to another user unless the transfer is due to a i) termination of employment, or ii) a transfer of the user to a new business unit or group resulting in no access to the Qlik Software. When a Named User or Document CAL is transferred, there is a 7-day quarantine before the CAL can be used by another user.
As you can see, the only times you are allowed to remove Named or Document CAL assignments is if the users have left the company or changed roles, removing users from these CAL types just because they have not used the product for a period of time is a violation of the license agreement...
To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question. I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
I think it's clear that this task is way beyond my skill set. I don't have any knowledge of Java or C# so it feels like a huge amount of effort for little benefit. I think we'll need to revert to our manual process.
In each case, all of the supporting code - to connect and collect document and CAL details from the server - works correctly. However, the final API call to 'save' the changes to the Document Meta Data appears to have no effect. That is, when I review the Document CALs tab in QMC after the code is executed, the Document CAL has neither been removed nor quarantined.
I did find a reference on Community suggesting that there was a bug in the QV Server - but I can't find this again! I will keep looking, and I'll check the Release Notes for versions after 12.20, to see if I can find anything.
In the meantime, any further support or suggestions would be appreciated.
Many thanks for the reference - I will take a look at this, but my feeling is that it is not the implementation method that is the issue. The issue is that the Server does not seem to respond to the API call as expected. Remember that I'm using example code provided, so it is not really a case of experience.
I will try to replicate this using the Powershell approach and post the results.