Goo day.
How to show table of site's or list's permissions, as it visible in web-interface?
Get-SPWeb -site 'http://company.com' | Select Permissions - outputs something different as I think...
Technology Tips and News
Goo day.
How to show table of site's or list's permissions, as it visible in web-interface?
Get-SPWeb -site 'http://company.com' | Select Permissions - outputs something different as I think...
You can use SPWeb.RoleAssignments, e.g.:
$site = Get-SPSite http://siteUrl $site.RootWeb.RoleAssignments
Same for a list:
$list = $site.RootWeb.List["ListTitle"] $list.RoleAssignments
If you want to see what roles a user belongs to, you can use:
$site.RootWeb.SiteUsers | Select UserLogin,Roles,IsSiteAdmin
Allen,
There's a lot of aspects to SharePoint security: users, groups, AD groups, permission levels, etc. Here's a collection of permissions scripts I put together a while back: