How to grant users access to a specific dynamic page?

Hi there :wave:

I am building a SaaS in which I have set up roles and permissions.

Users have access to their deals via dynamic pages (the ID of the deal appears in the URL so that the page can be accessed with just the URL). Currently, those pages can only be accessed if a user has the role/permission to do so.

What I want to do: I need to let authorized users whitelist other users (their clients) so that they can share the dynamic pages (their deals) with them.

How can I make it so that users whitelist other users to ONLY access the dynamic pages that contain the ID of the deals they want to share with their clients?

If my question is not clear, please let me know.

Thanks a lot in advance.
Will

this needs to be handled in the backend. Which backend are you using? depending on that I may be able to help

Hey @jayjay13, I am using Xano.