Get-Permissions

rated by 0 users
This post has 1 Reply | 2 Followers

Not Ranked
Posts 3
Emort Posted: 09-07-2011 2:23 AM

Hello,

Can anyone get me in the right direction; I’m fairly new in PowerShell, just completed 3 days of v1. And now trying to throw myself in my first project, and it is not going well :-D

 I’m trying to get a result that will show me a sites users and permissions of at SharePoint site

Get-SPUser -Web "WEBSITE" |Select-Object name

Will return the names but not the rights and as I can see it there is no permission property

Get-SPSite ‘WEBSITE’ | Get-SPWeb -Limit All | Select Title, Permissions   ,SiteUsers      

Gets me very close but the permissions are not readable in understandable way and the SiteUsers     are listed in un readable way

I’m I going in a totally wrong direction or missing something?

 

Pseudocode 

Get website and list users with their permissions in a readable way

   

User                   | site                                       | permission

xusr1                  | http://site/site                      |contribute

xusr2                  | http://site/site                      |Read

Top 10 Contributor
Posts 658
Idera Employee

Permissions is a deprecated Property. You should try working with RoleAssignments. 

Take a look at this article which shows you how to user this Property with various securable SharePoint objects:

http://blog.falchionconsulting.com/index.php/2010/04/discovering-who-has-access-to-sharepoint-2010-securable-objects/

Page 1 of 1 (2 items) | RSS
Copyright 2012 PowerShell.com. All rights reserved.