Restrict Login Access By Time (Control Access To Organization)
By default, Salesforce doesn’t restrict the time for login access. However, for added security, administrators can restrict it.
Restricting login access by time can only be achieved at the profile level only. For each profile, administrators can specify the hours when users can log in. For example, for employees who only need to access customer data during business hours, you can deny login access during evening hours and weekends.
If users are logged in when their login hours end, they can continue to view their current page, but they can’t take any further action.