cancel
Showing results for 
Search instead for 
Did you mean: 

Unity Script to Remove Assigned Licenses

Seth_Yantiss
Star Collaborator
Star Collaborator

Hello,

I am wanting to write a Unity script that will look at each user defined in OnBase, query Active Directory to determine the users status, then remove assigned OnBase licenses from the user if they are disabled in AD.

Does anyone have any ideas as to how I can do this?

Thanks
Seth!

1 REPLY 1

lboening
Star Contributor
Star Contributor

Here's how we do it

Pseudo code

1. Get list of user accounts in OnBase, turn into set "A"

2. Get list of user accounts from Active Directory, turn into set "B"

3. Get the differences between set "A" and set "B"

4. Act on the differences: add accounts, disable or delete accounts in both Active Directory and OnBase

I have written a script using Python 2.7, cx_Oracle and PyLDap to perform actions 1 through 3. As for step four, we do that by hand using OnBase Config and Active Directory tools. Turning step 4 into an automated action would be ideal.

I have written a Powershell 3.0 script for step 2. If my Unity API and C# and Vis Studio 2010/2012 skills were better, I would write something to perform all four actions.