I had this exact issue last month and here’s what actually worked. The root cause is that territory permission updates trigger a security policy refresh that invalidates the Git integration’s credential cache, but the system doesn’t automatically re-establish the connection.
Here’s the complete resolution addressing all three integration points:
1. User Role Mapping Refresh:
Navigate to Adobe Experience Cloud Admin Console → Territory Management → Service Accounts. Find your Git integration service account and click ‘Sync Permissions’. This forces an immediate synchronization of role mappings instead of waiting for the scheduled sync.
2. Access Token Regeneration:
In Adobe I/O Console, even if your token shows as valid, you need to regenerate it after permission changes:
# Generate new JWT token
curl -X POST https://ims-na1.adobelogin.com/ims/exchange/jwt \
-d 'client_id=YOUR_CLIENT_ID' \
-d 'client_secret=YOUR_SECRET' \
-d 'jwt_token=NEW_GENERATED_JWT'
Copy the new access_token and update your Git integration configuration.
3. Source Control Integration Reconfiguration:
Go to Adobe Experience Cloud → Settings → Integrations → Source Control. Delete the existing Git connection (this won’t affect your repository) and recreate it:
- Repository URL: Your Git repository
- Authentication: Use the newly generated access token
- Webhook Secret: Generate a new secret
- Branch Mapping: Reconfigure your territory-to-branch mappings
After completing all three steps, test the connection:
# Verify authentication
git ls-remote https://git.corp.adobe.io/territories/
# Should return branch list without errors
Critical Configuration Detail:
In your .aec-git-config.json file at the repository root, ensure the credential refresh interval is set appropriately:
{
"integration": {
"credentialRefreshInterval": 3600,
"permissionSyncMode": "immediate",
"territoryBranchMapping": "auto"
}
}
The permissionSyncMode: immediate setting is crucial-it forces real-time synchronization of territory permissions instead of using cached values.
Prevention for Future Updates:
Before modifying territory permissions, always:
- Put your deployment pipeline in maintenance mode
- Make permission changes
- Wait 10 minutes for propagation
- Run the ‘Sync Permissions’ command
- Verify Git connectivity with a test push
- Resume normal operations
This approach has worked reliably across multiple Adobe Experience Cloud 2021 instances with Git integration. Your deployment pipeline should be operational within 30 minutes of completing these steps.
This draft is based on general Adobe Experience Cloud knowledge. It has not been verified against your specific version and environment. Practitioners: verify the steps and share your experience below.