Inheritance: SPDGPrincipal
Example #1
0
 public abstract void AddSiteGroup(string name, SPDGUser owner, SPDGUser defaultUser, string description);
Example #2
0
        public override void AddSiteGroup(string name, SPDGUser owner, SPDGUser defaultUser, string description)
        {
            if (_site.RootWeb.ID != this.ID)
            {
                _site.RootWeb.AddSiteGroup(name, owner, defaultUser, description);
            }
            invalidateSiteGroups();
            GroupCreationInformation groupCreateInformation=new GroupCreationInformation();
            groupCreateInformation.Title = name;
            groupCreateInformation.Description = description;

            var group= _web.SiteGroups.Add(groupCreateInformation);
            group.Owner = ((SPDGClientUser) owner).User;
            group.Update();
            _context.ExecuteQuery();
        }
Example #3
0
        public override void AddSiteGroup(string name, SPDGUser owner, SPDGUser defaultUser, string description)
        {
            var spOwner =((SPDGServerUser)owner).SPUser;
            var spDefaultUser = ((SPDGServerUser)defaultUser).SPUser;

            _spWeb.SiteGroups.Add(name, spOwner, spDefaultUser, description);
        }