---
title: "Revoke access for expired connection"
canonical: "https://support.appfire.com/space/CCSFCONFC/3227189266/Revoke%20access%20for%20expired%20connection"
format: markdown
---
## **Summary**

This issue is caused by a Salesforce security policy that automatically expires refresh tokens after a maximum of 30 days of inactivity. Once the token expires, the connection between Salesforce and Confluence stops working, and all data syncs that rely on it will fail until an administrator reauthorizes it. 

**No data is lost when a connection expires.** Existing content in both Salesforce and Confluence is unaffected. Only new syncs are paused until the connection is reauthorized.

### Symptoms

You may encounter the ** Salesforce authorization failed** error when a connection has expired. Data syncs between Salesforce and Confluence will stop working until the connection is reauthorized. 

## Before you start

Make sure you have:

- Administrator access in Confluence - only administrators can revoke the connection.

## Resolution

Step 1 is required for all customers. Step 2 is needed if you also use Connections in Salesforce.

### **1. Revoke access for the connection**

1. Go to **Confluence administration **().
2. In the left sidebar under *Settings, *navigate to **Salesforce **>** Connections**.
3. Select the expired connection and click **Revoke Access**.
4. Click **Authorize**.
5. Sign in with Salesforce credentials when prompted.

### **2. Add the Access Token in the Salesforce connection**

1. In Salesforce, click **Settings **>** Setup**.
2. In the sidebar, use **Quick Find** and search for *Package,* then go to **Installed Packages**.
3. Look for *Confluence Cloud for Salesforce* and click **Configure**.
4. Click **Revoke** next to the connection.
5. Switch to Confluence.
6. Under* Salesforce*, click **Connections**.
7. Click **Menu** ()> **API Access Token.**
8. The* Access Token*** **dialog window appears with the **access token.**
9. Copy the Salesforce access token and save it.
10. Under **Access Token**, paste the new Access Token you copied in step 9.
11. Click **Save**.