Tag Info

New answers tagged

0

Only Group Owner has permission to Add/Remove members from Group. To handle your requirement, you need to create custom solution Create a web part You can query the group and list all members You can have a remove button - Clicking button will run elevated code to remove current user from group You can have an add button - Clicking button will run ...


0

run command: NET GROUP "group name" /DOMAIN export group members to a csv file: Get-ADGroupMember -identity “Name of Group” | select name | Export-csv -path C:\Output\Groupmembers.csv -NoTypeInformation and get the csv file in c:\Output for more details: http://www.selfadsi.org/extended-ad/search-group-members.htm


0

You can update the user using PowerShell without having to hit the database. You can also use some server side C# code. Personally, I prefer to use PowerShell because it's relatively quick and painless. Add-PSSnapin Microsoft.SharePoint.PowerShell $site = Get-SPSite http://example.com $web = $site.RootWeb $user = $web.SiteUsers.GetByEmail("usr@example.com") ...


0

This works for me: public override void FeatureActivated(SPFeatureReceiverProperties properties) { string usersAll = "NT AUTHORITY\\authenticated users"; SPSecurity.RunWithElevatedPrivileges(delegate { using (SPSite spSite = SPContext.Current.Web.Site) { using (SPWeb spWeb = spSite.OpenWeb()) { ...


0

Yes you can add All Authenticated Users or Domain Users. This will provide permission to all Users in Active Directory. // "c:0(.s|true" = All authenticated users web.SiteGroups["Member"].AddUser("c:0(.s|true", string.Empty, string.Empty, string.Empty); Update You can get Web's read permission group using following property ...


0

You can resync Display Name using following command Get-SPUser –Web http://webappurl | Set-SPUser –SyncFromAD Make sure to run the command using Farm Account.


1

You can add another view in the page which shows all the documents and set the Target Audience of the that web part as admin only so that only he can see that view.


1

We can use the below command to find out the user AD groups. Run command promt as an admin. Run command - net user (userisid) /domain



Top 50 recent answers are included