Quantcast
Channel: SharePoint 2010 - Development and Programming forum
Viewing all articles
Browse latest Browse all 11571

How to test SPGroup.CanCurrentUserEditMembership property against anyuser in powershell

$
0
0

On a SharePoint 2010 Site, I have several groups with the following setting applied:

Who Can edit membership of the group?  Set to Members

It seems that the majority of the user's are allowed to remove users, but can not add user's to the group.

So Let me setup a scenerio

TestGroup   - Read Permissions to Site     members are suppose to be able to edit

User1 - also has full control in another group of the site.  This user can add users and remove users.

User2 - This user can only remove users

User3 - This user can only remove users

User4 - This user can only remove users

I'm trying figure out why this is happening.  Why can the members only remove users and not add them?

If you know the answer great! 

In the mean time I am digging through powershell. I see the property SPGroup.CanCurrentUserEditMembership on this group, which just tells me if I can edit its membership or not.   How do I test any of the users in the group if they can edit membership?


pfcjt@hotmail.com


Viewing all articles
Browse latest Browse all 11571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>