Hi,
As my title states I need help developing a script that can find crowd users who have been inactive for over X days and deactivate them.
I was hoping someone could share a script I could use as my starting off point and tweak it if necessary.
I've researched this topic a bit and think Crowd Rest APIs would be what I need to use, but I am open to any suggestions.
A few things to note, we do not have scriptrunner in our environment, so my plan was a to develop a script I could set as a cronjob to be run once a month.
Hey @P
If you have direct DB access, this is a much more straightforward process - if so, MySQL/PSQL/MSSQL?
However to start, how do you define "active"?
We've struggled with this - if you're using Jira/Confluence etc as apps connected to Crowd, if you have say 10 users in Crowd (User1 , User2 ... User 10) and they're all synced to Jira and Confluence - User1 may be the only user logging in to Jira/Confluence and assigning/at mentioning user2,3,4,5,6 etc - those users get email notifications, reply via email, their replies are then ingested in to the tickets/pages in jira/conf - thought they have never logged in to the webui, so Crowd does not timestamp their lastAuthenticated attribute. If you disable User2-10 in Crowd, User1 can no longer do their job as expected.
CCM
Thanks for the reply!
I do have direct access the the Postgres DB.
Also to answer your question about defining activity.
I'm fine with lastAuthenticated attribute being the metric, we use to define it.
Because if they really need access they will reach back out and I can restore their access.
We have the 2000 user license. So it wont be that troublesome.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.