2
votes
2answers
1k views

Create New SharePoint Group Programmatically

How can I create a new SharePoint group by code?
2
votes
2answers
307 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
4k 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()) ...
5
votes
1answer
232 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
3answers
316 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
330 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) ...