If user does not login for consecutive 3 days,i wa...
# suitescript
p
If user does not login for consecutive 3 days,i want to be removed login access using schedule script how can i do this
a
that's an interesting idea! I'd say you will want to make a search that shows users with that criteria (Answer Id: 18240), then run a scheduled script that uses the search above, and 'inactivate' the employees.
l
inactive might prevent flows related to that employee record, just uncheck the access checkbox 🙂
w
I think you could also do this with an employee Mass Update with the same criteria, no scripting needed.
👍 1
a
@lleclerc_zlab - Did not know that. Does Inactivating any record prevent workflows from running on that record - or is it something specific to employee record?
l
@Ankur Sanghi i dont know about workflows, what I meant, is that employee record should behave similar to item record, if set to inactive, you cant use it on SalesOrders, but you might still want to be able to select employee somewhere else. @prachi If possible, I would go with scheduled mass update