2
votes
2answers
28 views

SharePoint group not visible

I created a new SharePoint group using UI. I do not see the group using: $web.Groups | select Name Why? (I need to access to the group by CSOM but the group is not found)
0
votes
2answers
160 views

How to get groups and their roles/permissions on each individual subsite, without including groups from child elements (such as libraries)?

Using CSOM and C#, how can I get the groups that have permissions on a site along with their roles, given that I have the name of the subsite? Language might be a barrier here, and I tend to explain ...
0
votes
2answers
230 views

How to programmatically get all groups that have permissions on site?

I found this question and that person was asking how to get all the groups from a site, but instead he already has code that returns groups that have permissions on the site. And that is what I am ...
0
votes
0answers
79 views

SharePoint 2010 - Create Group Manager programatically in Term store

I have developed code to add user to group manager in Term Store management for particular Term Set, I read the Microsoft article from here. So as per the hierarchy of permission logged in; user must ...
1
vote
2answers
141 views

AssociatedGroups collection of SPWeb?

I'm having a hard time understanding the purpose of adding an SPGroup to the AssociatedGroups collection (or its respective property bag item) of a site other than the group(s) appearing in the quick ...
5
votes
2answers
5k views

Create New SharePoint Group Programmatically

How can I create a new SharePoint group by code?
4
votes
2answers
645 views

Get Approvers Group - C#

I'm working on a workflow project, where I have to get all the users in the Approvers group. In order to get the approvals group, I run the following code: SPGroup approvals = ...
0
votes
2answers
8k views

How to get programmatically all Groups from a site collection

I need to know all groups in my site collection... If I use using (SPSite scSite = new SPSite(fullsite)) { using (SPWeb scWeb = scSite.OpenWeb()) ...
6
votes
2answers
385 views

HTML in SPGroup.Description

I am trying to add a group (SPGroup) programmatically. Everything works fine except for one thing. I would like the group's description to include a link to it's site. Similiar to the look-and-feel in ...
2
votes
4answers
445 views

Adding a feature to onet.xml to remove the default create SP groups

I've created a SP2010 Web Template based on a publishing site. I've added a feature receiver which removes all default SharePoint groups (Activated through my onet.xml file). Strangly enough the ...
1
vote
2answers
563 views

Add/Remove user from group when user is / is not a member already

I am working with updating groups programmatically and have been wondering how SPGroup's react when you: a) Try to remove people that are not already a member - silently fail, throw exception, ?? b) ...