function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Rachel Linder 20Rachel Linder 20 

What is the best way to determine what user is associated with automation?

Hello,
We have a user account that is tied to automation. We need to deactivate this user as they have not been with the company in about 2 years. 

How can we easily determine what automation if any is associated with  a specific user within our salesforce org.

Thank you.
VinayVinay (Salesforce Developers) 
Hi Rachel,

You would need to take backup of metadata of your org and search with user name that should give you associated component details.

You can try using VS code or ANT migration tool.

https://trailhead.salesforce.com/content/learn/projects/quickstart-vscode-salesforce/use-vscode-for-salesforce
https://medium.com/@idanblich/salesforce-vs-code-new-push-or-deploy-code-on-save-3f3fe5d76492
https://developer.salesforce.com/docs/atlas.en-us.daas.meta/daas/forcemigrationtool_install.htm

Thanks,
Susan TaylorSusan Taylor
Unfortunately there's no "where is this user referenced?" equivalent to the "where is this field used?"  I suspect at least part of what you're after is held in objects though so won't be available via metada (e.g. transfer of record ownership).  Salesforce has compiled a list of links to help here - https://help.salesforce.com/articleView?id=000325754&type=1&mode=1  (A little unsolicited advice?  Document what you do as it won't be the last time this happens and hopefully you can save future you a headache)
Michelle GuevarraMichelle Guevarra
I totally agree with Susan, having a function "where it is used" for users. I have encounter similar issues and it would be great if this function is implemented. I posted an idea (https://trailblazer.salesforce.com/ideaView?id=0874V000000slvdQAA)is this is still unresolve please upvote but if you already have know solution, let me know. One solution I know as a workaround, when you try to deactivate an active user, you will see the some automation connected to it like posted on this idea (https://trailblazer.salesforce.com/ideaView?id=08730000000Gztb).