We have developed a Forge app and want to limit the scope to specific projects.
By using a condition on confer level, we can limit the availability to pre-defined projects.
But we would like to let a project admin decide to enable (or disable the Forger App by a toggle under Project Admin > Apps > “myApp”.
Is there a code example available?
Welcome to the Atlassian developer community @IngoWenke,
I’m not aware of any code examples but I have seen apps do this. It’s mostly “case by case”. I think many have used project properties.
That said, Atlassian is already coming at this problem from the other direction. Specifically the app-access-rule is a future feature that would let admins restrict apps from having access to specific Confluence spaces or Jira projects. It might be worth waiting a little to make sure your approach fits well with that new capability.
Thanks for the response @ibuchanan I took a look to the feature you mentioned but according to what I am seeing (on the attached image) this feature provides ability to block ALL apps from accessing different data which is a bit different from what I am looking for.
In my case I am looking for the functionality where the admin by a toggle for example they can select which projects a given Forge app will be visible/usable from. And if the project is disabled the app should be hidden for example when the user open issues on that particular project
Please let me know if I am missing something from your answer or the docs
Sorry for posting on a solved topic. I have a related question that points at a limiting factor regarding the usage of App Access Rules as a means to restrict apps from accessing certain Confluence spaces. I opened a new topic for it today: App Access Rule limits
Please take a look and let me know what you think.