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就是拥有的权限