<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D51Y00008vd7HXSAYOkta Classic EngineAdministrationAnswered2026-04-01T09:00:20.000Z2020-07-10T05:18:40.000Z2020-07-12T15:33:27.000Z

SandeepG.66562 (Customer) asked a question.

Dynamic Group Rule with Custom user attribute

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.


  • feok4 (feok4)

    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.

  • SandeepG.66562 (Customer)

    @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.

     

     

  • k5fuw (k5fuw)

    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.

    Expand Post
This question is closed.
Loading
Dynamic Group Rule with Custom user attribute