Don't have Telegram yet? Try it now!
https://nishantrana.me/2018/11/15/sample-code-to-use-retrieveprincipalaccess-function-to-get-the-access-rights-of-the-team-or-user-in-dynamics-365-ce/
Sample code to use RetrievePrincipalAccess Function to get the access rights of the team or user in Dynamics 365 CE