使用自定义Web部件提取excel中每个用户和组的权限 [英] Extract Permissions of each user and group in excel using custom web part

查看:99
本文介绍了使用自定义Web部件提取excel中每个用户和组的权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想提取一个网站集中每个用户和每个组的权限以及excel中其子网站的权限.我将把该excel上传到SharePoint库中.

我想通过可视化Web部件实现这一目标.


解决方案

我建议您可以使用PowerShell脚本生成用户权限excel,因为PowerShell命令可以直接获取用户权限并导出到excel文件:

SharePoint 2013用户权限分析和使用PowerShell进行报告

在Web部件中,您可以使用C#代码调用PowerShell脚本:

从C#运行PowerShell脚本:

https://www.codeproject. com/Articles/18229/如何从C运行PowerShell-scripts

然后,我们可以使用C#上传excel:

https://stackoverflow.com/questions/21508773/how以编程方式将文档上传到共享点

谢谢

最好的问候 解决方案

Hi,

I suggest you can generate user permission excel using PowerShell script, as PowerShell Commands can directly get user permission and export to excel file:

SharePoint 2013 User Permission Analysis & Reporting using PowerShell

In the web part, you can call the PowerShell script using C# code:

Run PowerShell scripts from C#:

https://www.codeproject.com/Articles/18229/How-to-run-PowerShell-scripts-from-C

Then, we can upload the excel using C#:

https://stackoverflow.com/questions/21508773/how-to-upload-a-document-to-sharepoint-programmatically

Thanks

Best Regards


这篇关于使用自定义Web部件提取excel中每个用户和组的权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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