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

mac2022-06-30  64

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/archive/2012/07/23/2605174.html

相关资源:JAVA上百实例源码以及开源项目
最新回复(0)