> For the complete documentation index, see [llms.txt](https://integrations.drivetrain.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://integrations.drivetrain.ai/integration-guide/readme/crm/integrating-with-salesforce/grant-temporary-access-to-salesforce.md). Agents can also search and read this documentation through its [MCP server](https://integrations.drivetrain.ai/~gitbook/mcp).

# Grant temporary access to Salesforce

Grant temporary Salesforce access to Drivetrain for troubleshooting.

In rare cases—such as data inconsistencies, unexpected sync behavior, or bugs—your Drivetrain onboarding or support team may ask you to grant temporary access to your Salesforce account. This lets us investigate issues directly in your environment, using a read-only user that you control.

{% hint style="warning" %}
Use this guide only if requested by Drivetrain support. Most users do not need to complete this setup.
{% endhint %}

### Overview

This guide walks you through how to:

1. Create a read-only profile in Salesforce
2. Set the right API and object-level permissions
3. Create a dedicated user account with that profile
4. Revoke access after troubleshooting is complete

All access granted via this method is read-only and temporary. You can remove the user at any time.

### Step 1: Create a Read-Only Profile

1. Log in to Salesforce with an **admin account**
2. Go to **Setup**
3. In the left menu, go to **Users** > **Profiles**
4. Click **New Profile**
5. Use **Read Only** as the base profile
6. Name the profile `Drivetrain Integration`
7. Click **Save**

### Step 2: Set API and Object Permissions

1. Open the new profile and click **Edit**
2. Under **Administrative Permissions** (or **System Permissions** in the enhanced profile view), enable **API Enabled**, **View All Users** and **View All Data** (so the user can see your records). Don't enable **API Only User**: it blocks the web login the Drivetrain team needs.
3. Under **Standard Object Permissions** (or **Object Settings**), grant **Read** on **Opportunities**, **Accounts** and **Leads**. Opportunity History and Opportunity Field History follow Opportunities.
4. Optional: grant **Read** on any custom objects you sync.
5. Click **Save**

### Step 3: Create a Temporary User

1. In Setup, go to **Users** > **Users**
2. Click **New User**
3. Set the following:
   1. **Email address:** Use the one shared by your Drivetrain CSM (typically `dp-[yourcompany]@drivetrain.ai`)
   2. **Profile:** Select the read-only profile you created
4. Click **Save**

The user will receive login credentials via email, which will be used by the Drivetrain team to investigate the issue.

### Step 4: Notify Drivetrain

After the user is created, notify your Drivetrain CSM. A team member will log in and proceed with troubleshooting.

### Step 5: Revoke Access

After the issue is resolved:

1. In Setup, go to **Users** > **Users**
2. Click **Edit** next to the user you created
3. Clear **Active** and click **Save** (Salesforce doesn't let you delete users; deactivating removes access)

{% hint style="info" %}
This access method grants Drivetrain **temporary, read-only visibility** into your Salesforce data. You retain full control and can revoke access at any time. No create, edit or delete permissions are granted at any stage.
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://integrations.drivetrain.ai/integration-guide/readme/crm/integrating-with-salesforce/grant-temporary-access-to-salesforce.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
