查询用户具有读取权限的Web中的所有列表(SharePoint) [英] Query all lists in a web on which a user has read access (SharePoint)

查看:178
本文介绍了查询用户具有读取权限的Web中的所有列表(SharePoint)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个SharePoint网站,其中有许多列表。有些用户对几个列表具有读访问权等等。
$


我创建了一个自定义页面,列出了用户已阅读的所有列表的名称访问。对于此要求,我遍历站点上的所有列表并检查权限,然后生成报告。我绝对觉得像
一样循环这不是一个合适的解决方案(也是一个非常慢的解决方案)。 



如果我可以有人让我知道CAML查询网站以查询我或任何其他用户具有读取权限的网站上的所有SP列表? 

希望问题清楚。如果您需要任何其他输入,请与我们联系。 



谢谢你们b $ b $
Amar



问候

Amar

如果答案是你的答案,请将答复标记为答案题。如果它对您有所帮助,请将其标记为有用。

解决方案

您好


如果您可以在服务器上运行代码,则可以使用服务器对象模型SPSiteDataQuery。


https://www.c-sharpcorner.com/uploadfile/Roji.Joy/cross-site-list-query-using-spsitedataquery -in-的SharePoint-2010 /


I have a SharePoint site on which there are many lists. Some users have read access on a couple of lists and so on.

I have created a custom page that lists the name of all the lists on which the user has read access. For this requirement I loop through all the lists on the site and check through the permissions and then generate a report. I definitely feel that looping like this is not an apt solution (also a very slow one). 

Can someone let me know if I can CAML query the site to query all the SP lists on the site on which I or any other user has read access? 
Hope the question is clear. Let me know if you need any other inputs. 

Thanks

Amar


Regards
Amar
Please mark the reply as answer if it answers your question. Mark it as helpful if it does help you.

解决方案

Hi

If you can run code on the server, you can use Server Object Model SPSiteDataQuery.

https://www.c-sharpcorner.com/uploadfile/Roji.Joy/cross-site-list-query-using-spsitedataquery-in-sharepoint-2010/


这篇关于查询用户具有读取权限的Web中的所有列表(SharePoint)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆