A more-flexible Restricted Domain list

posted Sep 18, 2012, 1:16 PM by Ezra Kenigsberg

#DataTipOfTheDay 2012-09-18

Q: "My Restricted Domains list prevents me from adding External Chatter Users to my org! What can I do?"

A: Let me humbly submit that you (1) ask salesforce.com support to turn OFF that inflexible Restricted Domains list and instead (2) implement a User Validation Rule like the one below:

TEXT(Profile.UserType) = "Standard" &&
            MID(LOWER(Email), FIND("@", Email) + 1, 255)

The first line of the Validation Rule specifies that only Salesforce User licenses will be restricted to a particular domain (so External Chatter Users don't have to comply).

You should customize the "domain1.com;domain2.com;domain3.com" clause to be the list of domains you allow in your org, separated by semicolons.

Let me know what variations work for you!