Loading

Excluding Account Manager Service Roles from Access Tokens on B2C Commerce

Udgivelsesdato: Aug 24, 2026
Beskrivelse

Background

Today, a B2C Commerce OAuth access token issued by Account Manager carries the requesting principal's full role profile, regardless of which downstream service actually requested the token. This means:

  • Downstream services receive role claims beyond what they need to authorize the request in front of them.
  • Every token emits the complete role profile, which increases token size.
  • If a token is leaked, it exposes the full access profile of that user across the platform — not just the access relevant to the service that requested it.

 

Summary of Changes

ScenarioBehavior After the Jan 2027 Account Manager release
Tokens Issued for Account Manager and  Non-Account Manager AudiencesAccount Manager-service roles (Account Administrator, API Administrator, User Administrator, Read Only Account Administrator) are removed from the token claims.
Tenant filters on a non-Account Manager tokenAny roleTenantFilter entries tied to the removed Account Manager-service roles are removed in the same step.

 

Løsning

Customer & Service Impact

  • No Functional Loss for Account Manager: Account Manager does not consume the role claims embedded in access tokens. When authorizing requests, the Account Manager checks current role states directly against its database. So not having the Account Manager roles in the access token, should not affect 
  • No Impact on Downstream Services: Account Manager is the sole legitimate consumer of Account Manager-service roles, so other services do not depend on these internal administrative roles.
  • Enhanced Token Security: Sensitive administrative roles are removed from non-Account Manager token claims, preventing exposure of complete access profiles.
  • Reduced Token Size: Removing unnecessary role claims reduces overall token size, especially for administrative users with multiple assigned roles.

 

Rollout & Discovery Phase

  • A discovery period precedes the permanent exclusion of roles from the access tokens.
  • Account Manager will log which non-Account Manager audiences receive tokens containing Account Manager-service roles to identify and contact any unexpected consumers before the roles are permanently omitted.
  • No customer action is required. If your integration is unexpectedly affected, Salesforce will contact you before the change is finalized.
Yderligere ressourcer
Vidensartikelnummer

005391283

 
Indlæser
Salesforce Help | Article