How to make my application show up based on conditions? (spaceKey and/or user role)

I am prototyping an application that adds some custom buttons to the Page actions menu using Confluence content Action:
https://developer.atlassian.com/platform/forge/manifest-reference/modules/confluence-content-action/

The button is showing up fine, but now I want to configure it so it only shows up for a specified Confluence space, and also only if a user has a certain role.

I have found some documentation on using display conditions:
https://developer.atlassian.com/platform/forge/manifest-reference/display-conditions/confluence/

But nothing in here suggests that I can use the spaceKey or any user roles as a display condition, unless I am missing something.

So the question is, how could I have my button only show up using either the spaceKey or the users permissions?

The closest thing I have seen using the documentation is maybe using the REST API to set custom entity properties against the space, and maybe even for each user. That seems unintuitive and cumbersome though compared to just directly checking the properties I want.

Sorry this is not a reply but a sign that I share the same goal (but on Jira):

I would like to be able to control via a function whether an activity panel (or a project page) should appear.

E.g. my app only handle specific issuetypes and I would like to only add the panel to those issuetype (knowing that I don’t know at build time which issuetype that will be).

I think that pushing properties is not that bad but it is not working as display conditions on Jira Project and Issue :frowning: