Error: Insufficient permissions to install app (install on staging)

Hello,

I am having a Forge app under development (not yet listed on Market place). I created it under my own user account. I am able to deploy and install it on my own testing site / another site as staging.

However, I am encountering problems when setting up the CI/CD pipeline using our devops user account.

When I test with devops account, I can successfully deploy the app to the staging environment, however when I attempts to install it on staging forge install --site <staging-site>.atlassian.net --product jira -e staging --verbose (with --non-interactive if on actual pipeline), I received an error as follows:

Error: Insufficient permissions to install app (requestId: ...)

To install the app on this site, generate an installation link in the developer console and share it with the site admin: https://developer.atlassian.com/console/myapps/<app-id>/distribution

Answers from some previous posts suggested to run forge register, however this will change the app Id and it is not what I want. I just want to install the app to our staging site. Is it possible before listing it to Market place?

Thank you very much for your time.

Kind regards,

I solved my issue with the help of Atlassian Ecosystem support. In case anyone in the future have the same problem, here is how it should be done:

  1. Do not need to run forge register as they should share the same appId
  2. the devops account should be assigned as Deployer in the Forge app
  3. the devops account should be a Jira admin (or site admin) of the staging site. Mine is a jira app so a jira admin is enough