You need to sign in to do that
Don't have an account?
jimc507
Setting Login Hours programmatically
Hello,
After SFDC does an upgrade on an org, we need the ability to lockout users from using SFDC until we have gone through our regression testing. Once the testing is done we need to remove the login restrictions and allow access to SFDC. Currently, to accomplish the task, we set the Login Hours for each profile to lockout the time we need to test. However, we currently have over 75 profiles, so this task becomes very tedious and time consuming. Is there a way to set the Login Hours via APEX or the SFDC API using the Data Loader?
Thanks in advance,
Jim
I discovered just recently that you can deploy a sparse profile object using the Ant Migration tool to set login-hours.
If you create a .profile that looks like this:
and deploy using the ant tool. The number is the number of minutes since midnight. In this case login hours are from midnight to 6 pm (18 * 60 = 1080)
Then to unset the hours you can deploy an even sparser profile that looks like this:
Hope this helps.