I want to provide an option to admin so that they can allow or restrict all users (except admin) from logging in to Sitecore. Custom error message should be displayed on Sitecore login screen if access is restricted.

Active Directory authentication is enabled. How to change the default error message to display the entered custom error message if users are restricted ?

  • Which version of Sitecore are you using? – Gatogordo Jun 18 '20 at 14:43
  • Sitecore 8.2 (rev. 171121) – Siddharth Jun 18 '20 at 14:54

You can change it as follows :

  1. Switch to the core database
  2. Navigate to /sitecore/system/Dictionary/{first character of the message}/{actual message}
  3. Select the {actual message} item. Then, change the field name called "phrase" as per your wish.

All the messages displayed in Sitecore seems to be here

Reference : https://sitecore.stackexchange.com/a/12584/4515

  • Ok. this is the place to add custom message. I need to interject login request before it authenticates user (before active directory authentication starts) and if that user is restricted , then show custom message. which processor should be extended to add this business login and add custom message ? – Siddharth Jun 18 '20 at 14:30
  • Sorry, I'm not aware of it. Hope your original question on how to set the custom error message was answered. Please mark this as the answer if you find it so.. Thanks! – Paulson Maclean Jun 19 '20 at 14:59
  • Setting the custom error message using processor was the question. Thanks for answering where can we update the existing error message. – Siddharth Jun 19 '20 at 16:50
  • Welcome. Do upvote the answer – Paulson Maclean Jun 20 '20 at 4:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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