I have integrated Sharepoint with Dynamics 365 and need to restrict users access to documents related to entity they don't have access to (restricted by D365 security roles). Today they have access to all documents when browsing from Sharepoint.
I have found this: https://www.connecting-software.com/dynamics-crm-sharepoint-permissions-replicator/
Is buying this or create my own code the only way to solve this?