Dictionary> groupDic = new System.Collections.Generic.Dictionary>(); Dictionary groupPermission = new System.Collections.Generic.Dictionary(); groupPermission.Add(web.AssociatedOwnerGroup, "Full Control"); groupPermission.Add(web.AssociatedMemberGroup, "Contribute"); groupDic.Add("testlist", groupPermission);