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
Shivangi Singh 52Shivangi Singh 52 

Restrict User Access

How to restrict access to salesforce application for the time users are on leave on basis of Leave start and end date?
Freeze user on leave start date and then unfreeze on leave end date ?
Any other automation approach ?
AbhinavAbhinav (Salesforce Developers) 
Hi Shivangi,

Check this blog which has use case similar as of yours i.e freezing user based on date.

https://jenwlee.com/2021/06/07/freeze-a-user-now-or-in-the-future/

If it helps mark it as best answer.

Thanks!
Shivangi Singh 52Shivangi Singh 52
Got this link which solves my problem

https://automationchampion.com/2015/06/11/getting-started-with-process-builder-part-28-auto-freeze-users-account