Here is my code,
RetrievePrincipalAccessRequest request = new RetrievePrincipalAccessRequest(); request.Principal = new EntityReference("systemuser", new Guid("GUID of system user record.")); // record for which we want to check the access request.Target = new EntityReference("account", new Guid("GUID of account record.")); try { RetrievePrincipalAccessResponse responce = (RetrievePrincipalAccessResponse)organisationservice.Execute(request); } catch (Exception ex) { Console.WriteLine("error" + ex.Message.ToString()); }
It take out "can access| can edit| can read" privilege for system user and a security principal can be either user or team but not a security role, therefore is there any C# code which can retrieve privileges using a security role.
I have Dynamic CRM Online instance.
Thanks :-)
*This post is locked for comments