Client secrets blocked by a tenant-wide policy
Why you can't create a new PowerSyncPro client secret in Entra ID, and how to exclude the app from the Block password addition policy.
Summary
If your Entra ID tenant blocks new client secrets, you can't renew the secret PowerSyncPro uses to connect to Entra. Your current secret keeps working until it expires. After that, the Entra ID directory endpoint stops syncing. To fix this, exclude the PowerSyncPro app registration from the Block password addition application policy, then create a new secret.
Symptoms
- In the PowerSyncPro app registration (in Entra), the Certificates & secrets > Client secrets tab shows a banner: Client secrets are blocked by a tenant-wide policy. Contact your tenant administrator for more information.
- New client secret is greyed out.
CreatePSPEntraIDApp.ps1, Graph PowerShell or Graph API calls that add a secret fail withCredentialTypeNotAllowedAsPerAppPolicy.
Cause
An Entra app management policy called Block password addition is switched on in the tenant. Under the hood it sets the passwordAddition and symmetricKeyAddition restrictions in the tenant's default app management policy. Microsoft treats client secrets as the easiest app credential to steal, so it recommends blocking them.
The policy is off by default, so somebody or something turned it on. Common ways this happens:
- Baseline security mode. Microsoft 365 baseline security mode reached commercial tenants in early 2026 (message center MC1193689). One of its recommendations is to block new app passwords. If an admin chose to apply the default policies, Block password addition was switched on, possibly without anyone noticing. It sits in the Microsoft 365 admin center under Org settings > Security & privacy.
- A security baseline, hardening script or consultant turned it on.
- An admin turned it on directly in the Entra admin center or through Microsoft Graph.
Impact on PowerSyncPro
The policy only stops new secrets from being added. Microsoft says these policies don't block token issuance for existing apps, so your current secret keeps authenticating until it expires.
|
Scenario |
What happens |
|---|---|
|
Existing PowerSyncPro app with a valid secret |
Keeps working. Nothing breaks today. |
|
Secret is approaching expiry |
You can't create a replacement. Sync to that Entra tenant stops when the secret expires. |
|
New PowerSyncPro deployment |
|
|
Tenant-to-tenant migration |
Check both the source and target tenants. Either one can have the policy turned on. |
Tip: in the app registration, check the Expires column under Client secrets. A red icon means the secret has expired or is about to.
Resolution
We recommend excluding only the PowerSyncPro app registration. The rest of the tenant stays protected, and PowerSyncPro can still get a new secret.
Roles required: Global Administrator, or Security Administrator plus Application Administrator or Cloud Application Administrator.
Option 1 (recommended): exclude the PowerSyncPro app
- Sign in to the Microsoft Entra admin center.
- Go to Entra ID > Enterprise apps > Application policies.
- Under Password restrictions, select Block password addition. The status shows On.
- Leave Status set to On and Mode set to Enforce mode (block operations).
- Under Applies to, choose All applications with exclusions.
- On the Excluded apps tab, select Add applications. Then search for your PowerSyncPro app registration by name or object ID and add it.
- Select Save.
- Go back to the PowerSyncPro app registration and open Certificates & secrets > Client secrets. The banner should be gone. Create a new client secret and copy its value straight away.
- In PowerSyncPro, update the Entra ID directory endpoint with the new client secret.
Note: the admin center saves exclusions as a custom app management policy assigned to the PowerSyncPro app. You can see that policy in Microsoft Graph, but not in the portal.
Option 2: only apply the policy to newer apps
On the same page, Only apply to apps created after limits the policy to app registrations created after a date you pick. Apps created before that date, including an existing PowerSyncPro app, can still have secrets added. This helps if the tenant has many older apps that need secrets. It doesn't help for a new PowerSyncPro deployment.
Option 3 (not recommended): switch to report mode or turn the policy off
With Report mode (log but don't block) or Status set to Off, every app in the tenant can get new secrets again. Only do this if the customer's security team agrees, and switch it back once the secret is created.
Verify and prevent- Check the policy before you deploy. For new deployments, check Application policies in each tenant before you run
CreatePSPEntraIDApp.ps1. If you prefer Graph,GET https://graph.microsoft.com/v1.0/policies/defaultAppManagementPolicyreturns the policy. WhenisEnabledistrueand there is apasswordCredentialsrestriction of typepasswordAddition, secrets are blocked. - Confirm the fix. After you exclude the app, the Client secrets banner is gone and New client secret works.
- Plan for renewal. Put the secret's expiry date in your calendar. Keep the PowerSyncPro exclusion in place for the whole project, because baseline security mode or a security review can turn the policy back on.