Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am looking for a way to prevent users from logging in in a certain time span, let's say for a few days after new year's eve to check all data in the system.

I thought about the "Login Hours" on a profile level, but it would be nice if there was a faster (more global) way to do this.

Also it would be really great if the user gets a notification on login, why he can't access the system right now, that I define (e.g., "you can't login because we are checking data...").

Do you have any ideas or experience with that?

share|improve this question
up vote 9 down vote accepted

I recommend a "maintenance" profile. We have one with all of the login hours set to midnight, preventing users from logging on completely. Another option would be to have your profile set to only show a web tab with your maintenance message.

The nice thing about maintenance profiles is that you can mass update all of your users via the Data Loader (just make sure you don't lock out your system admins.)


Note, this cannot be accomplished with Permission Sets since they only add to a user's access.

share|improve this answer
There will always be one "master sysadmin" whose profile can't be edited and user account can't be deactivated ;) – eyescream Nov 26 '12 at 16:05
Yes, but we wouldn't want to need to call support ;- ) – Mike Chale Nov 26 '12 at 16:18
Thanks Mike, that is a good idea. so 1.) Backup User <-> Profile assignment 2.) Change all users to "Maintenance" profile 3.)Maintain! 4.) Re-assign User <-> Profile That's really cool idea! Does anyone know if this could be achieved via Permission Set? – Nisse Knudsen Nov 26 '12 at 17:40
No, that would not work. Permission sets only grant access and cannot be used to deny access. – Mike Chale Nov 26 '12 at 17:47

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.