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
AXAX 

Hi, I have created a field in Account object. Field - Account Stage. The Account stage shouldn't be updated by the given profile. -Chatter Free User and Chatter External User.

VinayVinay (Salesforce Developers) 
Hi Arunabh,

Try below validation rule.
AND((ISCHANGED(AccountStage)),
$Profile.Name = "Chatter External User")
 
Chatter External:
This license is designed to invite customers to Chatter groups. Customers are users outside of a company’s email domain. Customers can access information and interact with users only in the groups they’re invited to. They have no access to Salesforce objects or data.

Chatter Free
The Chatter Free license is designed for users who don’t have Salesforce licenses but need access to Chatter. These users can access standard Chatter items such as people, profiles, groups, and files, but they can’t access any Salesforce objects or data. Chatter Free users can also be Chatter moderators. Chatter Free users don’t see tabs like other Salesforce users. Chatter Free users access Chatter feeds, people, groups, and files using the links in the sidebar of the Chatter page.

Thanks,
Vinay Kumar
AXAX
Hi Vinay thanks for replying but actually I don't want these profile to update this field it should show the error message when updated by these profile. 
AmitSoniAmitSoni
Hi Arunabh,

When validatuion rule condition evaluates to true, Defined error message will be shown to the user and record will not be updated.

Thanks!!
AXAX
I want the validation rule of the criteria mentioned above.
VinayVinay (Salesforce Developers) 
Hi Arunabh,

Did you try the above validation?  Use above validation rule and that should trigger an error.

However,  I believe the chatter external profile doesn't have access to salesforce object.  Check below link for same.

https://help.salesforce.com/articleView?id=users_license_types_chatter.htm&type=5

Thanks,
AXAX
What if we create any other profile and then try with that?
 
VinayVinay (Salesforce Developers) 
You can update the profile name as per your requirement.

$Profile.Name = "Chatter External User" or $Profile.Name = "Chatter Profile"

If you have multiple try to use OR condition.

OR($Profile.Name = "Chatter External User"),$Profile.Name = "Chatter user profile"))

Please mark as Best Answer if above information was helpful so that it can help others in the future.

Thanks,
Vinay Kumar
AXAX
Can you send me the whole rule? So that It can help me to solve the one. I will surely mark as the best answer.
VinayVinay (Salesforce Developers) 
Rule:
AND((ISCHANGED(AccountStage__c)),
$Profile.Name = "Chatter External User")

If you have multiple profiles
AND((ISCHANGED(AccountStage)), OR(($Profile.Name = "Chatter External User"),($Profile.Name = "Chatter user profile"))

Thanks,
AXAX
 The account should not get saved with this profile. I want this validation rule true so that it doesn't get saved.
VinayVinay (Salesforce Developers) 
Include ISNEW().
AND((ISCHANGED(AccountStage__c)),ISNEW()
,
$Profile.Name = "Chatter External User")

Thanks,
AXAX
The requirement is that the given profile entered in the field shouldnt get saved. It should get error message and not get saved. 
AXAX
Not able to achieve it.