How to show or hide specific sections or pages for certain users using displayConditions in Forge manifest?

Hi Community,

Is it possible to show or hide a specific section or page in the navigation (for example, inside a jira:globalPage module) for certain users or based on a custom role, using displayConditions in the Forge manifest?

For example, is something like this supported or planned?

jira:globalPage:

  • key: my-manager
    title: “Manager”
    sections:
    • header: “Admin Stuff”
      displayConditions:
      user: [user1, user2, user3]
      pages:
      • title: “Confidential”
        route: confidential

Or is it only possible to use isAdmin or similar conditions at the module level?
Are there recommended ways to allow only certain users or roles to see some sections/pages directly via the manifest, without doing it in frontend code?

It’s already possible to set displayCondition for Jira global pages. You can check based on the options.

@SaifAyashi you can only achieve that via display logic in the front-end code.

If you only want certain users to access certain data or functionality, you should implement that functionality in a resolver function guarded by an appropriate authorisation check.

Hope this helps!

cheers,
Tim