Send the following on WhatsApp
Continue to ChatSample code to use RetrievePrincipalAccess Function to get the access rights of the team or user in Dynamics 365 CE https://365community.online/sample-code-to-use-retrieveprincipalaccess-function-to-get-the-access-rights-of-the-team-or-user-in-dynamics-365-ce