普通用户使用Web服务执行FetchExpression 查询查不到数据?
-
21. července 2012 0:39
代码如下,我用户普通角色用户高级查找得到的FetchXML,在系统中也能查找不到管理员,普通角色用户执行以下程序中就查不出数据
当我改用管理员执行代码的时候又可以查出数据了,请问普通角色用户执行这个代码需要的权限是什么?
//使用高级查找下载的FetchXML string fetchxml = string.Format(@"<fetch version='1.0' output-format='xml-platform' mapping='logical' distinct='true'> <entity name='systemuser'> <attribute name='fullname' /> <attribute name='businessunitid' /> <attribute name='title' /> <attribute name='address1_telephone1' /> <attribute name='systemuserid' /> <order attribute='fullname' descending='false' /> <link-entity name='systemuserroles' from='systemuserid' to='systemuserid' visible='false' intersect='true'> <link-entity name='role' from='roleid' to='roleid' alias='aa'> <filter type='and'> <condition attribute='name' operator='eq' value='系统管理员' /> </filter> </link-entity> </link-entity> </entity> </fetch>"); FetchExpression fetch = new FetchExpression(fetchxml); EntityCollection entities = slos.RetrieveMultiple(fetch);
windows live Id :hellohongfu@hotmail.com
- Upravený 王红福 21. července 2012 0:48 已解决
Všechny reakce
-
21. července 2012 0:52
已经解决,因为普通用户和系统管理员没有在一个部门,查看角色的权限是部门级的,我把这个查看角色的权限给成组织级就能查看了
解决方案:
设置-》管理-》-》安全角色-》客户经理角色-》业务管理-》安全角色-》读全部组织
windows live Id :hellohongfu@hotmail.com
- Označen jako odpověď 王红福 21. července 2012 0:52
-
30. července 2012 14:19哥们,能否留个 qq。有些问题想问下您。