Select to view content in your preferred language

Disable User accounts after a set amount of time.

309
3
10-31-2025 12:53 PM
Status: Open
JonathanKolterman52
Occasional Contributor

I would like to have the ability to have user accounts in my Enterprise portal automatically disable after a set amount of inactivity. Right now I have to manually audit users once a year and deactivate the accounts that are inactive, then after a period of time fully delete them. This feels like a task that could and should be automated. 

Tags (2)
3 Comments
RyanUthoff

I'm assuming you're wanting an out of the box tool, but the Esri Python API can certainly accomplish what you're wanting.

berniejconnors

I agree with @RyanUthoff , that sounds like a python script.  If you have Notebook Server you could use the built-in scheduler to run the script once a week.  Even if you're not a coder you could likely create a functioning script with the help of generative AI. 

What do you currently do with the content users have created when deleting accounts?  That may be the hardest part to code.

Bernie.

shikhar_deep

 

Thank you, @RyanUthoff and @berniejconnors , for sharing your insights. I also believe that utilizing a Task of ArcGIS Notebook Server would be beneficial in this context.

You can learn more about ArcGIS Notebook Server and its automated notebook execution through Tasks. We also provide several sample notebooks that may be of interest to you.

Thanks