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
srinivas anantharamsrinivas anantharam 

can we automate the deactvation of users ?

how can we automate the deactivation of users if the user is inactve for certain time?
Vijay NagarathinamVijay Nagarathinam
Hi Srinivas,

Yes you can deactivate the users using apex triggers.

Thanks,
Vijay
James WooleyJames Wooley
You should be able to do this using a time-based workflow with a field update x days after the last login date to set is active to false.