Quantcast
Channel: SharePoint 2013 - Development and Programming forum
Viewing all articles
Browse latest Browse all 7589

Sharepoint Website creation with local group

$
0
0

Hi i programatically create a new  website  so:

using (SPSite site = new SPSite(SPContext.Current.Web.Url))
                {


                    using (

                        SPWeb newWeb = site.AllWebs.Add(
                        SiteName,//Site url
                        SiteName,//Site Name
                        DescriptionValue,
                        1040,// Language Eng
                        TextProperty1,

                        true,
                        false



                        )
                        )

The Snippet works fine but in the new site i don t have the default SharePoint Group ;Member of ,Owner of etc.. Why? How i can  define  these groups?I see only the Group from the root site ..


Viewing all articles
Browse latest Browse all 7589

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>