We provide an iPaaS service. We created a public app on the legacy app platform and issue its client_id to our customers. Each customer authorizes the app by selecting their own account during the OAuth flow. Our design requests only the scopes required by each workflow (integration), so the scope= parameter in the install URL varies per workflow.
Recently we’ve seen the following behavior in two customer accounts, and we’d appreciate any insight into the possible cause.
Assumptions / context:
- Our app’s scope configuration appears correct (only
oauthis set as required; all other scopes are registered as “conditionally required”). - The user performing the authorization is a Super Admin.
- The scopes shown in the error are all standard CRM scopes, of the same kind as other standard scopes that authorize successfully — they are not plan-gated advanced scopes.
Case 1 (clear, reproducible):
- A customer first authorizes a workflow that requests scopes A, B, C → succeeds.
- They then try to authorize a different workflow that requests scopes A, D, E, and get this error:
Authorization failed because this app hasn't been approved to access the required scopes [crm.objects.companies.write, crm.objects.companies.read, crm.schemas.companies.read] in your account. Please reach out to your account super admin to add the app's permissions in your account's app governance settings. - If they uninstall the app in their account and then re-authorize with A, D, E, it succeeds.
- But if they then try A, B, C again, it now fails with B and C reported as unapproved.
In other words, scopes added in a later authorization are rejected instead of being approved on the consent screen. Previously (and for most other customers), re-authorization succeeded even when additional scopes were requested.
Additional observation:
- In the customer’s “Connected Apps” screen, the app appears under the “Connection home” tab but does not appear under the “Approved apps” tab. (In our own test environments as well, the app shows up under “Approved apps” for some accounts but not others.)
Case 2 (possibly related, different error):
- For a different, newly onboarded customer, the error message was different: “An unexpected error occurred during the app authorization process.” This account had no prior issues on our side. Reducing the set of requested scopes and retrying resolved it.
We’re not sure whether Case 1 and Case 2 share the same root cause.
Questions:
- Is it a recent behavior change that re-authorization requesting additional scopes no longer completes on the consent screen and instead returns this app-governance error? If so, what is the correct way to approve the additional scopes?
- For an account where App Governance is in effect, what is the proper way for a customer (Super Admin) to approve additional scopes for a public app? We don’t see a way to manually add a non-marketplace public app under the “Approved apps” tab.
- What determines whether an app appears under the “Approved apps” tab for a given account? We see it appear for some accounts but not others.
We’ve reviewed the relevant documentation but couldn’t find recent information matching this behavior. Any guidance would be appreciated. Thank you.