且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

查询用户具有读取权限的Web中的所有列表(SharePoint)

更新时间:2023-11-30 10:23:10

您好


如果您可以在服务器上运行代码,则可以使用服务器对象模型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/