Loading

Salesforce Non-Administrators of a Production Instance are Unable to Install an App on the Sandbox

Fecha de publicación: Feb 10, 2025
Descripción

Users may need to install an app in sandbox where they have the required "Download AppExchange Packages" permission to Install a Package but I are not currently an administrator in the sandbox's related production org.

When trying to install an App from the AppExchange you will be prompted to login. The login for AppExchange must be your login to production where your user record's assigned profile is either System Administrator or has the "Download AppExchange Packages" permission otherwise, you will receive the messages below stating that you do not have permission to install the app after clicking the "Get it Now" button.

It's not possible to use your sandbox login while the URL is set to login.salesforce.com and it will state your username or password is incorrect and if you try to update the URL to test.salesforce.com, you will receive a message stating there was a problem with the authentication attempt.

Attempting to login to the AppExchange with production login credentials results in:


Oops! Looks like you don't have permission to install apps.

To keep your Salesforce secure, only system administrators have permission to install apps. Please contact your Salesforce system administrator to install this app.

Or if you're feeling adventurous, sign up for a new free trial of Salesforce so you can install and try out the app on your own.



Trying to manually update the URL when prompted to login to read test.salesforce.com instead of login.salesforce.com results in the following error:


We've Encountered a Problem

We've encountered an intermittent problem. Please click back on your browser and try again. If you continue to encounter the problem, please log a case in your Salesforce org to help us solve the issue.


It's possible to circumvent these errors and install an App in a Sandbox even if you're not an administrator in the sandbox's related production org.
 

Solución

Workaround if your login credentials in production do not have the required permissions


If it's not possible to grant the necessary 'Download AppExchange Packages' permission for the installing user in production, you may use an alternative production org's login credentials (such as a developer edition org) where you do have the required permissions. This will allow you to retrieve the app or package's installation URL to then manually install the app into the desired sandbox. This circumvents the AppExchange login process and check against your production org's user record's permissions.
 
1. If you do not have an alternative org's login credentials with the required permission you can Sign up for a free Developer Edition org in order to use that environment's login credentials

2. Ensure that you are logged out of the AppExchange in your browser

3. Follow the process to install an app except enter your alternative org's login credentials and select Install in production instead of Install in sandbox.

4.  After clicking "Confirm and Install" you should be directed to an additional login page where you will see a URL in the browser's address bar similar to the following:
 
https://login.salesforce.com/?startURL=%2Fpackaging%2FinstallPackage.apexp%3Fp0%3D04t30000000bqOuAAI%26newUI%3D1%26src%3Du

A) Copy the app or package Id out of the login page's URL, it is the Id beginning with 04t as shown in bold and underlined in the URL above

B) Replace <PackageIdHere> with the package's Id into the following install URL:

/_ui/core/mfpackage/install/InstallPackageLandingPage?p0=<PackageIdHere>&src=U

For our example above, the result would be:

/_ui/core/mfpackage/install/InstallPackageLandingPage?p0=04t30000000bqOuAAI&src=U

6.  Copy the app's install URL you have just constructed and ensure that you log out of all active Salesforce sessions and then login to your desired sandbox where you would like to install the package.

Note: Make absolutely sure that you are only logged into the sandbox where you're attempting to install the package otherwise, you risk accidentally installing the package in the wrong org!

7. While logged into the desired sandbox, paste the copied portion of the package install URL after salesforce.com in your browser's address bar.

8. Proceed with the package install.
 


No "Download AppExchange Packages permission


If you have the correct permission in the target sandbox the installation should proceed as expected. However, if you do not have the required 'Download AppExchange Packages' permission you can go through the installation steps but the install will fail and return the following message:
 
This app can't be installed.

There are problems that prevent this package from being installed.

Unable to Access the AppExchange You have attempted to create, upload, or download an AppExchange package without the necessary permissions. Please contact your administrator to resolve this issue.
 
Número del artículo de conocimiento

000387841

 
Cargando
Salesforce Help | Article