You need to sign in to do that
Don't have an account?
kk1985
Restrict users based on license type
I have a scenario where a case should only be assigned to Users with User License Type 'Salesforce'. If it is assigned to anyone else with a different License Type, the Case should throw an error message when saved. I tried to use Validation Rule, but i'm unable to get this done. Any advise will be of great help. Thank you!
NOT(ISPICKVAL( Owner:User.UserType , 'Standard') )
All Answers
Not sure about your use case, but what other license type do you have that can access Case object?
I believe if you should write a validation on caseowner to check for standard user type:
The validtion on the caseowner field will look like
Owner:User.UserType <> 'Standard'
Now standard user type have the following license type
Salesforce
Salesforce platform
Salesforce platform one
Out of the above three only salesforce license user can have access to case object. Therefore by checking for standard user type you should be fullfilling your user case.
Hope it makes sense.
Thanks for your response. Company Communities and Salesforce License types that we have in the org.
NOT(ISPICKVAL( Owner:User.UserType , 'Standard') )
I tried this validation rule and it worked. Can you double check if the user you were trying to assign the case was indeed a community user.