How to replicate addon_property_contains_any_user_group and addon_property_equal_to from Connect in Forge using Jira expressions or displayConditions?

I’m migrating a Jira Connect app to Forge and trying to replicate the following Connect condition in Forge:

atlassion-connect.json code is as general page module

 "name":{
          "value":"....."
        },
 	    "location": "system.top.navigation.bar",
 	    "key": "...",
 	    "icon": {
 	        "height": 16,
 	    	"width": 16,
 	    	"url": "...."
 	    },
 	    "url": "....",

 	    "conditions":[
			{
	          	"or": [
		          	{
					  "condition": "addon_property_contains_any_user_group",
					  "params": {
					      "propertyKey": "arnCrossProjectAccessGroups",
					      "value": "true"
					  }
					},
					{
			            "condition": "addon_property_equal_to",
			            "params": {
			              "propertyKey": "arnCrossProjectAccessUsers",
			              "value": "true"
			            }
			          }
	          	]
          	}
		]
	}

In Forge, I tried using displayConditions in manifest.yml like this:


jira:globalPage:
    - key: ...
      resource: main
      resolver:
        function: resolver
      title: ....
      layout: blank
      icon: resource:main;img/logo.png
      displayConditions:
        jiraExpression: "app.properties['arnCrossProjectAccessUsers'] == true || user.groups.includes('arnCrossProjectAccessUsers')"
        # jiraExpression: "app.properties['arnCrossProjectAccessUsers'] == true || app.properties['arnCrossProjectAccessUsers'] == true"


i also tried as display condition it wont worked.(here for jira entityPropertyContainsAnyUserGroup entity property are not supported.)

        # or:
        #   entityPropertyEqualTo: 
        #     entity: app
        #     propertyKey: arnCrossProjectAccessUsers
        #     value: 'true'

Specifically:

Can I check if a user belongs to a group in displayConditions?

Can I combine app-level properties and user group checks in a Forge-compatible way?

Any guidance or working examples would be greatly appreciated!

I don’t think that works with display conditions. I think you’d have to check in the frontend code, as a previous answer suggests.