MS CRM2011 某个用户(团队)对某个实体的操作权限

RetrievePrincipalAccessRequest acc = new RetrievePrincipalAccessRequest();
acc.Target = new Microsoft.Xrm.Sdk.EntityReference("account", new Guid("37471FB9-69F4-46D3-926B-000014ED02AC"));//目标实体
acc.Principal = new Microsoft.Xrm.Sdk.EntityReference("systemuser", method.GetCurrentUserId());//用户或者团队
RetrievePrincipalAccessResponse res = method.Execute(acc) as RetrievePrincipalAccessResponse;//获取查询结果

res.AccessRights就是拥有的权限

原文地址:https://www.cnblogs.com/lmy213/p/2605174.html