+ Start a Discussion
SpoorthySpoorthy 

Time limiting for users work hours

Hi I have a requiement where there are 100 bankers that will completed 5 hour shifts between 8am-9pm. We want to set a parameter of when their shift starts and ends so that we can activate their user in salesforce 5 minutes before the starting of their shift and 5 minutes after their shift ends. Please explain how you would make this work.
Amit Chaudhary 8Amit Chaudhary 8
Please try to setup login hr. 

or each profile, you can specify the hours when users can log in.

1)From Setup, click Manage Users | Profiles, and select a profile.
2) Click Edit in the Login Hours related list.
3) Set the days and hours when users with this profile can use the system.
To allow users to log in at any time, click Clear All Times. To prohibit users from using the system on a specific day, set the start and end times to the same value.
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.
4) Click Save.
https://help.salesforce.com/apex/HTViewHelpDoc?id=admin_loginrestrict.htm

Please let us know if this will help you

Thanks
Amit Chaudhary
 
SpoorthySpoorthy
Hi Thanks for the response, But I have 5 minutes buffer right?  We want to set a parameter of when their shift starts and ends so that we can activate their user in salesforce 5 minutes before the starting of their shift and 5 minutes after their shift ends.  and all users might not fall into same Timings, One set of users from 8am to 1 pm and another set of users from 9 am to 2 pm. at profile level we cannot set login hours as 7.55am and logut as 9.05 pm.
Please comment.
Bullfrog84Bullfrog84
Is there a way to mitigate this with Apex?