
Is there any API through which I can get a user's access level and record level privileges? First, I want to check if a user has access to a specific entity, and then I want to check what documents a user can access out of all the records in that entity.
Hi restassured,
You can get all privilege of the user by this API:
RetrieveUserPrivileges Function (Microsoft.Dynamics.CRM) | Microsoft Docs
And this API for the record privilege:
RetrievePrincipalAccess Function (Microsoft.Dynamics.CRM) | Microsoft Docs