Automate ITIL Licence Removal

WESAdmin
Kilo Contributor

We currently have a manual process whereby the ITIL Licence is supposed to be manually removed from an ITIL user if their account is made inactive however because it is a manual process our access management team forget out this step from time to time.
What I would like to do is create a script of some sort that checks if the user has any Roles when the Active flag is unchecked, it then pops up a message warning the person unchecking it, and prompts them to OK or Cancel. OK continues deactivating the account and removes any Roles, Cancel, does just that, Cancels the action.

Has anyone done anything similar in this area?

12 REPLIES 12

not sure i like the way this conversation indents itself the way it does and gets smaller and smaller...


anyway, I have double checked on licence count and you were right, it is only active users that are counted.   however has a good Admin and ethical licenced user, I still like to keep my house clean so I'd rather remove licences (including other roles) when a licenced user becomes inactive so I'm looking for a way to generate a Notification but everything I have tried just doesnt seem to work.   I've tried scripting hasRole('itil') & hasRoles() but I'm yet to get a notification to trigger when making a licenced user inactive.   NOTE: would prefer to use hasRoles() given this is supposed to pick up if the user has ANY role.


in the script where you remove the license can you fire an event... then write a notification triggered by that event?


Yes, randrwes is correct. Just create your own event and fire it via gs.eventQueue(xxx) and register a notification against it. You can also pass the target userID who should receive this event.