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

I do like Mike's approach on this.

To fix the ones that are currently using up licenses that shouldn't be, you could run a background script that checks all inactive users for roles and simply removes them.


OK. Finally got back to this item.   (although took me forever to find it in this "new" community because it seemed to have dropped off my watched items?!).


Anyway, things have changed slightly.   I am now deactivating SNc user records automatically via the transform map when the LDAP syncs, so the need for a "message" is no longer.   I have also discovered I dont want to automatically remove the ITIL licence as this has implications on 'active' calls that may be still assigned to that now, inactive record.


So my next option is to create a Notification that gets triggered when a user record with an ITIL licences is deactivated during the above sync or possibly an Event that creates a task for someone to action.



Now to work out the scripting



Thoughts?






Why would you actually want to do that? I don't see any reason besides housekeeping. The license count will only count active users as far as I know.


HMMM... I was of the understanding they just counted ITIL roles applied to users.   Was unaware they disregarded inactive users.   I'm sure some scripting guru would be able to get around the licence count if that was the case, ie auto deactivate an inactive account for x number of days, then reactivate the account when they log in to do work... not ethical but I'm sure possible.   Personally I think it would be good housekeeping to remove unused licences anyway.   what can I say, i like to keep the cobwebs away.


ITIL is not the only role that requires a license as such, so you would need to remove all roles for inactive users


In addition, I don't think we alert somebody prior checking their current license count. And yes, if some script guru wants, I am sure he will find a way to cheat this. Not very ethical, and probably not a customer for us going forward once we find out about it.