Yoong Jia
08/15/2025, 5:47 AMpermit.getUserPermissions(id) through the sdk, and it will return a full list of permission to the front end to render the items.
Previously when we changed the roles of a user, the changes in the permission returned from that call also happens near real-time/immediately, but starting yesterday the getUserPermissions only returns the correct permission after around 5 mins approximately (different every time) after we changed the roles. Do you know why ? It looks like the rendering of the roles on permit.io side has some issue and propagation of the policy to our PDP is delayedOr Weis
08/15/2025, 6:32 AMAsk Inkeep
08/15/2025, 6:32 AMAsk Inkeep
08/15/2025, 6:32 AMgetUserPermissions returning updated permissions after role changes sounds like a synchronization issue between the Permit.io control plane and your PDP.
To help resolve this, you can enable the *Read-Your-Own-Writes* feature which ensures immediate consistency after data changes (1) . This feature routes data change requests through the PDP and waits for them to be applied before responding .
Here's how to enable it in Node.js:
const permit = new Permit({
token: "[your-api-key]",
pdp: "http://localhost:7766",
proxyFactsViaPdp: true
}) ;
With proxyFactsViaPdp enabled, API calls wait until data is fully synced to the PDP before returning, allowing immediate permission checks .
To help our engineers investigate this issue further, could you please provide:
1. Which Workspace / Project / Env you are using
2. What calls you're performing (as SDK code or CURL)
3. Which PDP version you're running
4. Any relevant logs from your PDP
This information will help us identify whyAsk Inkeep
08/15/2025, 6:32 AMOr Weis
08/15/2025, 6:37 AM