PowerShell脚本,用于提取多个用​​户的权限详细信息。 [英] PowerShell script to extract permission details for multiple users.

查看:79
本文介绍了PowerShell脚本,用于提取多个用​​户的权限详细信息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,我编写了一个PowerShell脚本,以便针对SINGLE用户提取整个Web应用程序中的权限详细信息。在成功运行脚本时,我获得了用户在该网络
应用程序下的网站集/网站/列表中拥有的所有权限。

Hello, I have written a PowerShell script to extract permission details in the entire web application against a SINGLE user. At the successful run of the script, I get all the permissions the user has within the site collection/sites/lists under that web application.

现在,如果我有一个批量用户,例如20个用户,我想为他们做同样的事情,收集数据的其他方法是什么?我可以将这20个用户ID放在CSV文件中。是否可以调用此CSV并为其中的每个用户ID提取
数据?如果是,那么我们还需要输出结果中的单独列来区分每个用户ID。

Now if I have a bulk of users, say for example 20 numbers of users, for whom I want to do the same, what would be the additional approach to collect the data? I may put down all these 20 user IDs in a CSV file. Would it be possible to call this CSV and extract data for each one of the user IDs inside that? If yes, then we would also require a separate column in the output result to distinguish each user IDs.

感谢您的帮助。

推荐答案

您可以尝试以下脚本,它将为您提供所有用户的权限。成功生成输出文件后,您可以过滤目标20个用户并获取权限报告。 

You can try the below scripts it will give you permissions for all users. After the output file is generated sucessfully you can filter the targeted 20 users and get the permission report. 

https://gallery.technet.microsoft.com/office/SharePoint-Permissions -f42ea9db 

https://gallery.technet.microsoft.com/office/SharePoint-Permissions-f42ea9db 

http://www.sharepointdiary.com/2014/12/get-all-users-of-sharepoint-site-collection-web-app-farm.html 

http://www.sharepointdiary.com/2014/12/get-all-users-of-sharepoint-site-collection-web-app-farm.html 

希望这有助于:) 

Hope this Helps :) 


这篇关于PowerShell脚本,用于提取多个用​​户的权限详细信息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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