Yoong Jia
08/15/2025, 6:36 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 delayedAsk Inkeep
08/15/2025, 6:36 AMAsk Inkeep
08/15/2025, 6:36 AMgetUserPermissions function retrieves all user permissions across registered resources and tenants (1) . When you update roles, these changes need to propagate from Permit.io's control plane to your Policy Decision Point (PDP) .
To help our engineers investigate this delay issue, could you please provide:
1. *Which Workspace / Project / Env you are using* - This helps identify your specific configuration
2. *What calls you are performing* - Please share:
• The exact SDK code for your getUserPermissions call (e.g., in Node.js it would be: await permit.getUserPermissions(user) ; )
• How you're updating the roles (SDK code or API calls)
3. *Which PDP version you are running* - Check your PDP container/deployment version
4. *Relevant logs from your PDP* - Particularly any logs showing:
• When role updates are received
• Any errors or warnings during synchronization
• Timestamps of when permissions queries are made
The 5-minute delay suggests there might be an issue with the real-time policy/data streaming to your PDP. Your PDP should receive updates via OPAL's WebSocket connection for near real-time synchronization (2) .Ask Inkeep
08/15/2025, 6:36 AMOr Weis
08/15/2025, 6:42 AMYoong Jia
08/15/2025, 7:03 AMproxyFactsViaPDP it might be true but we are pretty sure that the whole flow was working fine for months, and there is no update to the flow from our backend as well. The issue only emerges yesterdayOr Weis
08/15/2025, 7:04 AMYoong Jia
08/15/2025, 8:13 AMAlon Boshi
08/15/2025, 8:20 AMOr Weis
08/15/2025, 8:39 AMOr Weis
08/15/2025, 8:39 AMOr Weis
08/15/2025, 9:49 AMYoong Jia
08/15/2025, 1:48 PMYoong Jia
08/15/2025, 1:49 PMYoong Jia
08/15/2025, 1:49 PMYoong Jia
08/15/2025, 1:55 PMOr Weis
08/15/2025, 2:06 PMYou mean the log directly from the PDP ?
Yes
I just checked again, looks like the latency has dropped to normal one we had, thanks for the help ! I will attach the log here soon if I hit the delay again here
Alright, please do consider using the consistent updates feature regardless, this will make your system more fault tolerant