Establish a Tenant Relationship With a Trusted Salesforce Organization | MuleSoft Documentation
# Establish a Tenant Relationship With a Trusted Salesforce Organization
Ways to establish a tenant relationship include:
  * A Salesforce organization is provisioned with the tenant relationship with an Anypoint Platform organization already established. In this case, the Anypoint Platform organization administrator just needs to enable the connection in Anypoint Platform.
  * The Anypoint Platform organization administrator initiates the tenant relationship in Anypoint Platform and the Salesforce organization administrator completes the setup in the Salesforce organization.


In some cases, the Anypoint Platform organization administrator and Salesforce organization administrator are different people, and in some cases, they are the same person.
## Before You Begin
Anypoint Platform organization administrators must have:
  * Anypoint Platform Organization Administrator permission at the root organization level
  * Salesforce tenant key of the Salesforce organization to connect
The Anypoint Platform organization administrator can get the tenant key from the Salesforce organization administrator.


Salesforce organization administrators must have:
  * Salesforce administrator permission set
  * Anypoint Platform organization key
The Salesforce organization administrator can get the Anypoint Platform organization key from the Anypoint Platform organization administrator.


## Connect With a Salesforce Org in Anypoint Platform
As an Anypoint Platform organization administrator, you can start the process of connecting to a trusted Salesforce organization.
You must have the Salesforce organization’s connection key (tenant key) before you can connect to a Salesforce organization. Contact the Salesforce organization admin to get the tenant key.
  1. Sign in to Anypoint Platform using an account that has the root Organization Administrator permission.
  2. In the navigation bar or the main Anypoint Platform page, click **Access Management**.
  3. Select **Salesforce** from the navigation.
  4. Click **Add Salesforce Org**.
  5. Enter the Salesforce organization’s tenant key, and click **Confirm**.
The format for the Salesforce tenant key is `cloud/env/org-id`.
  6. In **Add the Salesforce Org** , verify the information and click **Add**.
  7. Click **Copy** to copy the Anypoint Platform organization key.
  8. If you are the admin for the Salesforce organization you are adding, click **Manage in Salesforce** to continue setting up the relationship in Salesforce.
If you are not the Salesforce admin, provide the Anypoint Platform organization key to the Salesforce admin so they can finish the connection process in Salesforce.


When the connection process is complete, the Salesforce organization appears in the **Salesforce Orgs** section of the **Salesforce** page.
## Complete the Organization Connection in Salesforce
As a Salesforce organization administrator, you complete the connection between your organization and the Anypoint Platform organization when the connection process is initiated in Anypoint Platform. You must have the Anypoint Platform organization (tenant) key to complete the connection.
  1. Log in to your Salesforce organization with your admin credentials.
  2. From **Setup** , in the Quick Find box, enter `MuleSoft`, and then select **MuleSoft > Anypoint Platform Setup**.
  3. In **Your connected Anypoint Platform Organization** , click **View Connection Info**.
  4. In **Connection to MuleSoft Anypoint Platform** , enter the Anypoint Platform organization key in **Anypoint Platform Organization ID** , and then click **Connect**.
The format for the Anypoint Platform organization key is `cloud/env/org-id`.
If you don’t have the Anypoint Platform organization key, contact the Anypoint Platform organization administrator.
You return to the **Connection to MuleSoft Anypoint Platform** page. The page shows the connected Anypoint Platform organization details, including the enablement status of the capabilities associated with your Salesforce organization.


## Get the Salesforce Organization Tenant Key
  1. In **Your connected Anypoint Platform Organization** , click **View Connection Info**.
  2. In **Connection to MuleSoft Anypoint Platform** , click the action menu and select **Copy Salesforce Org Key**.
  3. If you are signed in to the Salesforce organization as an admin, click **Manage in Salesforce** to continue setting up the connection in Salesforce.


## See Also
  * Trusted Salesforce Organizations
  * Managing Connected Salesforce Orgs