How to deactivate inactive user through flow designer

Vinod S Patil
Tera Contributor

Hello SN Team,

How to deactivate user if user is inactive for 15 days using flow designer.

can anyone suggest me to resolve it.

1 ACCEPTED SOLUTION

Harish KM
Kilo Patron
Kilo Patron

Hi @Vinod S Patil create a new flow designer with trigger as daily

HarishKM_0-1707299270931.png

Do Look up Records Action

HarishKM_1-1707299306709.png

 

HarishKM_5-1707299562688.png

 

then use for each to do the lookup

HarishKM_3-1707299408239.png

 

Update User table

HarishKM_4-1707299443610.png

 

You can adjust the condition on look up records action to retreive users on last 15 days and do the test run until you get correct result

 

Regards
Harish

View solution in original post

2 REPLIES 2

Dr Atul G- LNG
Tera Patron
Tera Patron

 Hi @Vinod S Patil 

 

How you are checking inactivity? If last login not done in 15 days , are you considering that user as inactive and you want to make it Active = False

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Harish KM
Kilo Patron
Kilo Patron

Hi @Vinod S Patil create a new flow designer with trigger as daily

HarishKM_0-1707299270931.png

Do Look up Records Action

HarishKM_1-1707299306709.png

 

HarishKM_5-1707299562688.png

 

then use for each to do the lookup

HarishKM_3-1707299408239.png

 

Update User table

HarishKM_4-1707299443610.png

 

You can adjust the condition on look up records action to retreive users on last 15 days and do the test run until you get correct result

 

Regards
Harish