09-06-2012 08:46 AM
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!
04-26-2013 07:24 AM
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.
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.