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
ritika@developerforceritika@developerforce 

Restrict Login Hours Programatically

Hello,

 

My requirement is to restrict login hours, but through Apex Code. Unable to locate where is the profile based login hours saved in salesforce.

Please help if you have any information, or any other way by which I can restrict a profile from Logging in (Something like Salesforce Maintenance Notice) for some time and then oepning them up again.

 

Thanks

Ritika