Tag Info

New answers tagged

1

The error you get with your code when used for a subsite is because you use Get-Site with a subsite Url. Instead of Get-SPSite use Get-SPWeb as below: Get-SPWeb http://server/sites/yoursite | Select -ExpandProperty Groups | Where {$_.Name -EQ "your group name here"} | Select -ExpandProperty Users | Select Name, Email The code above will find the group ...


0

SharePoint Groups information is stored in the Site Collection Level. You can confirm this by opening -> Site Settings -> People & Groups. Now you can see it open the People & Groups page people.aspx from the Site Collection.


1

I found the below snippet using System.DirectoryServices.AccountManagement; public bool IsUserInSharePointGroup(string webUrl, string groupName, string username) { bool userIsInGroup = false; SPSecurity.RunWithElevatedPrivileges(delegate { try { SPWeb web = SPContext.Current.Web; // Find the group ...


1

I have faced the similar issue and solved it by following steps . go to the parent site (root site) and navigate to your SharePoint group from settings . Once you Inside the group click on settings and then List settings Inside List setting its you can change the view and add or remove columns to show/hide. Hope this solves your issue.


0

Unfortunately you can't combine Membership element with Value element. See syntax (childs element) documentation of Membership element. <Membership Type="CurrentUserGroups"> <Value>NOT POSSIBLE</Value> </Membership> If you use SP Server you can use feature: Audience targeting settings Create more Views, where every view is for ...


1

you need to cycle one way or the other, by this i mean iterate either through ad groups or through sharepoint groups and compare the two.... im lazy and created a console application that explains how todo it. When i get the chance i will post PS code! .cs code is checking against AD and looping sharepoint as i think you could have many AD groups and less ...


2

You can use below snippet Get-SPUser -Web http://server/sites/yoursite | Where { $_.IsDomainGroup } AD group is treated as a special user. So this can be find using the filter IsDomainGroup Update $SPWebApp = Get-SPWebApplication https://*******.com/ foreach ($SPSite in $SPWebApp.Sites) { write-host -foregroundcolor green "Working on Site ...


1

I faced this same issue and fixed it, here's how. After following many of the same templates that you did from blogs and tutorials to obtain the code for the web.config files, finally when checking this older page I saw that the LDAPROLE provider should also have a few more attributes: ...


1

Make sure the sub-site in question don't have unique permission. All the group's will be available in the root. You can open the People & Groups from the root site and make the changes you are trying.



Top 50 recent answers are included