Programmatically Adding SharePoint Group and Quick Add Group

Simple way to add a new custom group or custom quick add group programmatically.

Elements File Modification
Add the below 2 lines of code to your elements file under Elements > Module > File

 
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="AltsisWebParts" Url="_catalogs/wp">
<File Url="Srini.webpart" Type="" >
<Property Name="Group" Value="AltsisGroup" />
<Property Name="QuickAddGroups" Value="AltsisGroup" />
</File>
</Module>
</Elements>

Comments