
SandeepG.66562 (Customer) asked a question.
I have created a new user profile and want to create a dynamic group with user type and custom attribute.
created user profile: partner with custom attribute isAdmin(boolean).
My dynamic group rule is:
String.toLowerCase(user.userType)=="partner" AND String.toLowerCase(user.isAdmin)=="true"
But getting error.
Can you please suggest.

Can you see the user.isadmin if using something like postman to read the attribute? Also, please post the error as it may help resolve the issue.
@feok4 (feok4) Here is the error i am getting : "Expression cannot be evaluated for Users with a custom user type."
Also when i fetch the user profile from postman, i am getting back all the values including custom attributes.
You stated that isAdmin is a boolean attribute, but in your group rule, you're trying to treat it like a string.
Try this instead:
String.toLowerCase(user.userType)=="partner" AND (user.isAdmin)
"(user.isAdmin)" should return either True or False, and if it's True AND user.userType contains "partner", your IF conditions should be satisfied and the rule should succeed.