By clicking "Site Settings" > "Site Permission" I can get a list of permission setup for the site. I need to export the exact list with PowerShell to CSV. May I know how to do it?
$web = Get-SPWeb "http://url" $web.Permissions
I get a list very similar. However it is showing "BasePermissions" (e.g. ViewListItems, AddListItems, EditListItems, DeleteListItems, OpenItems, ViewVersions, DeleteVersions, ManagePersonalViews, ViewFormPages, Open, ViewPages, CreateSSCSite, ManagePermiss ions, BrowseDirectories, BrowseUserInfo, UseClientIntegration).
It is not what I want. I want to show the permission level exactly same as GUI provide. (e.g. Full Control, Limited Access)
Could you please advice?