Loading

Marketing Cloud Engagement | FAQ: Rotating Client Secrets for Installed Packages

Julkaisupäivä: Oct 30, 2026
Kuvaus

This FAQ explains how to identify which installed packages require Client Secret rotation, how to rotate a Client Secret, and what to watch out for when rotating it.

Ratkaisu
Q. What do I do when a Client Secret expires or is about to expire?
A. Complete the following steps:
  1. Identify the systems and applications that use the Client ID and Client Secret you want to rotate.
  2. In Marketing Cloud Engagement, generate and stage a new secret. Copy it and store it in a secure location. (See "Generate and Stage a New Secret" in the article below.)
  3. In each API client or integration, replace the old secret with the new secret, and verify that the integration works as expected.
  4. Activate the staged secret. (See "Activate a Staged Secret" in the article below.)
Q. Which installed packages require Client Secret rotation?
A. Packages that contain an API Integration component with an Integration Type of "Web App" or "Server-to-Server" require rotation.

To check, go to Setup > Platform Tools > Apps > Installed Packages, and review the Client Secret Expires column. Packages that show a date require rotation. To confirm, open the package and verify that the Components list includes an API Integration with an Integration Type of "Web App" or "Server-to-Server".

When the Client Secret Expires column shows "N/A", there are two possible causes:

  • The package doesn't require rotation: System-provided packages without an API Integration component (for example, Experience Cloud Marketing Form and Query Studio) have no Client Secret that requires rotation. "N/A" is expected, and no action is required.
  • The expiration date isn't visible: If you lack the required permissions, or you're viewing a child business unit (BU), the expiration date can appear as "N/A" even for packages that require rotation. Check again as an administrator in the Enterprise (parent) BU.

Q. Do I need to rotate the Client Secret for Marketing Cloud Connect (the standard integration with Sales Cloud), or for Marketing Cloud Personalization integrations such as triggered campaigns?
A. No. These standard features don't require rotation.

Important: You must still rotate the Client Secret for custom integrations that authenticate through an installed package that you created (for example, an Apex integration that calls the Marketing Cloud Engagement API).

Q. Do I need to rotate the Client Secret for system-provided packages such as Experience Cloud Marketing Form?
A. No. Salesforce provides this package, and it doesn't have a customer-managed Client Secret with an expiration date, so it doesn't require rotation.

Q. Do I need to rotate the Client Secret of an installed package that I no longer use?
A. No, if you're certain that you won't need the package again.
 
Note: Authentication requests that use an expired secret fail, and warnings continue to appear. To resume using the package, rotate the expired secret first.
Salesforce recommends that you delete unused integrations along with their packages.
Important: Before you delete a package, make sure that no API integrations still use it. The LAST AUTH CALL date is only a rough indicator of usage. Salesforce Support can't determine the purpose or necessity of each package. If you aren't sure what a package is for, we recommend checking with your own team
 
Q. Can I rotate a Client Secret without downtime?
A. Yes. While a staged secret exists, Marketing Cloud Engagement accepts both the old secret and the new staged secret. During this period, update your API integrations with the new secret and verify that they work, so that you can switch over without interrupting the integration.

Warning: When you activate the staged secret, the old secret becomes invalid immediately. If multiple systems or applications share one installed package, activate the staged secret only after all of them have been updated to use the new secret.
Note: If the active secret reaches its expiration date, the staged secret isn't activated automatically. An administrator must activate it manually.
Reference: Prepare to Rotate Client Secrets for Installed Packages

Q. How do I update the Client Secret in an external service?
A. The procedure differs by service, so contact the service's administrator. Please note that Salesforce Support can't provide procedures for external services.

Q. Can I rotate Client Secrets by using an API or CLI?
A. No. As of October 2026, you can rotate Client Secrets only in the Marketing Cloud Engagement UI.

Q. Can I retrieve expiration dates by using an API (for example, for monitoring)?
A. No. As of October 2026, you can check expiration dates only in the UI.

Q. Can I view or restore a previous Client Secret?
A. No. Marketing Cloud Engagement displays a Client Secret only once, immediately after you generate it. Store it in a secure location before you close the screen. Once you activate a new secret, the old secret is permanently invalid and you can't reactivate it.

Q. When I request an access token with a newly generated Client Secret, authentication fails. What should I do?
A. The request can fail if you send it right after you generate a new Client Secret. Wait about 5 minutes, and then try again, as described in Step 7 of the article below.
Reference: Rotate an OAuth 2.0 Secret
Knowledge-artikkelin numero

005460670

 
Ladataan
Salesforce Help | Article