12
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....
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
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
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
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 ...
3
votes
Show appropriate view based on user permission
Use target audience settings of the web part. Set it to the SharePoint group that can only see the contents of that view. The only trade off is that, when a user is not on that group, he can select ...
3
votes
Accepted
How to change "Who can view the membership of the group" Group Members to Everyone through csom javascript
You can change membership visibility via CSOM using set_onlyAllowMembersViewMembership function:
var context = SP.ClientContext.get_current()
var web = context.get_web()
var groups = web....
3
votes
Accepted
User adding working, but permissions setting is not woring - CSOM
If you only want to add a user to a group, then do this:
ClientContext client = new ClientContext("SiteURL");
Web web = client.Web;
Group group = web.SiteGroups.GetByName("test Members");
User user =...
3
votes
Accepted
SHAREPOINT\system account not visible in Group membership in browser but showing up in powershell
I think this is just because "SHAREPOINT\system" is actually a "logical" account that has no real "physical" correspondence, while "domain\user" is something that maps to an actual user, in this case ...
3
votes
How do I assign a group to a subsite?
You have to go to the subsite, click the Gear to go to Site Settings and then click Site Permissions. From there, you can add your group by clicking the Grant Permissions button. If you do not see ...
3
votes
Accepted
Can i define more than one user group inside the "Group Owner" field for a User Group
You can only add one user or one SharePoint group as owner. Its not possible via powershell as well.
So if you want multiple users as owners, create a new SP group , add your users to it and make it ...
3
votes
Accepted
Why SPWeb.Group provide a method named Add() that always raises exceptions (that we can not use)
The short answer to this question is, Add method is there for Type consistency which makes the life easier for the Developers, both the SharePoint library(dll) developers and general SharePoint ...
3
votes
Accepted
Best approach to allow all our employees to Read a site and send them an email when a new discussion item is added
There is a property IsHiddenInUI but unfortunately its only a getter property so you cant change its value and hide group in UI.
Now you are afraid that AD group might be removed by some adventurous ...
3
votes
Hiding a Div for some of users
Do it the other way around
Hide content by default
Add a Content Editor Editor WebPart
Add JavaScript to get the hidden content DOM element
Show the Content with Javascript (eg: style.display='inline-...
3
votes
Accepted
Can we use distribution lists inside sharepoint 2016 "Person and Group" column type
Distribution lists cannot be used here as they're used to distribute emails to recipient mailboxes but not more. They do not have any security context as the mail-enabled security groups do.
3
votes
SharePoint Group Permissions in Lists
I will try below approach
Create folder for each group. (If new folder option is disabled in list. Please check this link to enable.)
Give edit/contribute permission to respective group on respective ...
3
votes
Accepted
How to get group by group name in JSOM SP2010?
You could do something like this:
var groupCollection = clientContext.get_web().get_siteGroups();
var myGroupName = "Group Name";
var myGroup = null;
clientContext.load(groupCollection);
...
3
votes
Accepted
How can I create a SharePoint group using Flow?
Yes, you are right. You need to use Send an HTTP request to SharePoint action in Microsoft Flow in order to create a SharePoint Group.
Try Using it as given in below image:
Output: Group with name ...
3
votes
Accepted
How to Get Site-users and Site-groups in SPFx using PnP-JS?
Site Users:
You can get the site users using pnp.sp.web.siteUsers as given below:
$pnp.sp.web.siteUsers.get().then(function(data) {
var users = "";
for (var i = 0; i < data.length; i++) {
...
3
votes
Accepted
sorry you don't have permission to query for users
As we have discussed in the comments, the Audi group is configured to only let current members see who are the members.
If the group is configured in that way then other users will receive permission ...
3
votes
Accepted
Naming a New O365 Group Site Issue
As mentioned, Here
When you delete an Office 365 Group, the associated SharePoint site is sent to a recycle bin. You can see the list of Deleted Sites (aka sites in recycle bin) by going to the newer/...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
groups × 655permissions × 219
sharepoint-online × 139
2013 × 95
2010 × 62
powershell × 59
active-directory × 50
sharepoint-enterprise × 43
list × 37
security × 34
sharepoint-server × 33
user × 32
javascript × 28
office-365 × 27
sharepoint-rest-api × 23
development × 22
workflow × 21
client-object-model × 19
administration × 17
csom × 16
list-view × 14
sharepoint-designer × 12
jsom × 12
email × 12
sharepoint-permissions × 12