11
votes
Accepted
Edit SharePoint group permission using PowerShell
Try below code:
This will remove group permission full control
$web = get-spweb http://url/to/your/web
$group = $web.SiteGroups["Owners"]
$ra = $group.ParentWeb.RoleAssignments....
7
votes
Users added to AD group not granted access in SharePoint
Late answer but, The User Profile is not responsible in this case.
SharePoint recognizes AD security groups and attaching permissions to these groups will cause the permissions to be granted to the ...
7
votes
Accepted
Report on who added user to SharePoint group and when?
Yes, it is possible in 2010 to find out who added a particular user to a group and when.
You do need to be collecting audit data.
You can query the audit data with Powershell, for example, to ...
6
votes
Accepted
SharePoint 2013 get user groups by CSOM
Move this line
var groups = currentUser.get_groups();
To your getCurrentUser method and make sure to load it
this.clientContext.load(groups);
before executing the request, this way you will have ...
6
votes
Setting permission on folders and items of Document Library
Those groups will not be able to access the folders if the permission for the folder is broken and only the group "XYZ" has permissions to the folder and rest all are removed.
UPDATE
Sample ...
6
votes
Accepted
create groups of groups for permissions
No, that is not permitted. You could add security groups into the Sharepoint groups if they exist though, distribution lists are not supported.
6
votes
Accepted
Powershell script to get list of AD groups used from site collections in SharePoint 2010
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
...
6
votes
Create SharePoint groups with powershell
This is something we built in-house:
function Add-SPGroup {
<#
.SYNOPSIS
Use Add-SPGroup to create a SharePoint Group.
.DESCRIPTION
This function uses the Add() method of a SharePoint ...
5
votes
Nested AD Groups not propagating permissions
If your AD group is a security group and you are using SharePoint 2013, the way that AD Groups work are a little different. Each time a user logs into to SharePoint, they receive a token that is their ...
5
votes
How to use Active Directory groups with workflows?
You have to include the AD Groups in the user profile sync connection. If your AD Groups are not sync'd with the UPS, then it won't be possible. Make sure the UPS Sync connection includes the ...
5
votes
create groups of groups for permissions
You are out of luck. a SP group cannot contain any other SP group. It’s a big limitation.Although SharePoint groups can contain (AD) users and AD groups.
Check this Technet: http://technet.microsoft....
5
votes
How to remove SPGroup from sitegroups using PowerShell
$spWeb = Get-SPWeb "https://spdev"
$GroupName="Group 1"
if($spWeb.SiteGroups[$GroupName] -ne $null)
{
$spWeb.SiteGroups.Remove($GroupName)
$spWeb.Update()
Write-Host "Group Deleted!"
}
else
{
Write-...
5
votes
Accepted
Change SharePoint group owner with Powershell to a SharePoint group
You just need a small change to your PowerShell script.
$web = Get-SPWeb http://webUrl
$groupOwner = $web.SiteGroups["GroupA"] #this group will own "GroupB"
$groupTarget = $web.SiteGroups["GroupB"]
$...
5
votes
Accepted
Assign a task to a group - task not created, email not sent
Considering that you are using a SharePoint group and presuming that the Assign a task step is not running inside an App Step, then make sure that everyone can view the membership of the group.
Go ...
5
votes
Group members must request access to access Group Files?
I guess you found "Something went wrong..." in creating the group. The whole point of Office 365 groups is that adding users to the group as members instantly give the access to the sites resources, ...
4
votes
SharePoint 2013 get user groups by CSOM
The code should look like this:
function getCurrentUser() {
this.clientContext = new SP.ClientContext.get_current();
this.oWeb = clientContext.get_web();
currentUser = ...
4
votes
Accepted
Adding groups to sharepoint site using powershell
Groups are created at the site collection level only.
It is only what permissions that group has in the sub site that is
maintained (in a sub site with broken inheritance) in the sub site
See ...
4
votes
Accepted
Why would spWeb.Site.RootWeb.AssociatedOwnerGroup be null?
Not sure why it could be empty - perhaps was deleted at some point (this has happened to me before). You can set the owner by visiting _layouts/permsetup.aspx of your site collection.
4
votes
Accepted
SharePoint 2010 Adding Users to Group "Access Denied"
There is a hidden list in your site collection at /_catalogs/users. See this explanation.
If the user has yet never been assigned to a group, there is no entry for her / him in the list, that means ...
4
votes
Accepted
PowerShell Get all users in a SP Group from a subsite
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 -...
4
votes
Accepted
How to add AD Group to SharePoint Group using Powershell
$SiteCollection = "http://site/sitecollection"
$ADGroupName = "domain\adgroup"
$SPGroupName = "My Test Group A1"
$SPGroupDescription = "Test Group A1’s Description"
$SPGroupPermission = "Read"
#Start ...
4
votes
Accepted
What permissions are needed to Create Groups and Add users to Groups?
Answers of your questions:
You will need FullControl permission to create group.
No. You can take reference from here.
No. SharePoint uses an App Only context it really doesn’t matter what rights ...
4
votes
Accepted
Get all property of Group using CSOM
I tried your code and got an unknown error. So i tried removing each field in the LINQ query and I found the error is due to grup => grup.Owner. I have changed it to grup => grup.OwnerTitle and ...
4
votes
Accepted
Manipulating permissions on SharePoint Online with PowerShell
One of my favorite ways to automate repetitive tasks is to use PowerShell + CSOM.
The Client Object Model allows me to run my scripts on top of on-prem SharePoint or Office 365 using the exact same ...
4
votes
Accepted
Are there any differences if i create a new Sharepoint User Group from the site collection level or from the sub site level
It doesn't matter where you create them, groups only exist in one place, the site collection root. Creating them anywhere makes them available everywhere in the collection.
4
votes
Accepted
Using Active Directory groups instead of SP groups
The cons is obviously that you won't be able to add users to a group in SharePoint, and you have to manage AD-groups instead. If you already have 10'000 SharePoint groups in your environment, you may ...
4
votes
Accepted
Credentials popup issue while adding a user to SharePoint group with REST API
For adding user to group, instead of REST API I used JSOM, now I didn't get credentials pop up. :)
Adding users to a group with JSOM using following code::
addUserToSharePointGroup: function (...
4
votes
How to get group object through csom?
Try this code below :
GroupCollection groupColl = clientContext.Web.SiteGroups;
Group newgroup = groupColl.GetByName("InternalUsers");
clientContext.Load(newgroup);
clientContext.ExecuteQuery();
4
votes
Accepted
Nested AD group is not able to get permissions on SharePoint 2013
Nested AD Groups are not recommended with SharePoint and can lead to the results you're seeing. Unnest the groups [with SharePoint].
4
votes
SharePoint Group Permissions in Lists
Create multiple views and set target audience for showing different view for different user group. Use caml query (Membership Element and SPGroup type) to get all users from the specific group for ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
groups × 633permissions × 207
sharepoint-online × 116
2013 × 95
2010 × 62
powershell × 57
active-directory × 50
sharepoint-enterprise × 42
list × 34
security × 34
user × 32
sharepoint-server × 31
javascript × 28
workflow × 22
development × 22
office-365 × 22
client-object-model × 19
sharepoint-rest-api × 18
csom × 16
list-view × 14
sharepoint-designer × 12
jsom × 12
email × 12
roles × 12
sharepoint-foundation × 11