public GetADPrincipalGroupMembershipResponse(ActiveDirectoryGroup[] MemberOf) { this.MemberOf = MemberOf; }
public GetADPrincipalAuthorizationGroupResponse(ActiveDirectoryGroup[] MemberOf) { this.MemberOf = MemberOf; }
private void PopulateADGroupFromWebServiceData(ActiveDirectoryGroup inputWSGroup, ADGroup groupToPopulate) { ActiveDirectoryGroupScope groupScope = inputWSGroup.GroupScope; switch (groupScope) { case ActiveDirectoryGroupScope.DomainLocal: { groupToPopulate.GroupScope = new ADGroupScope?(ADGroupScope.DomainLocal); break; } case ActiveDirectoryGroupScope.Global: { groupToPopulate.GroupScope = new ADGroupScope?(ADGroupScope.Global); break; } case ActiveDirectoryGroupScope.Universal: { groupToPopulate.GroupScope = new ADGroupScope?(ADGroupScope.Universal); break; } } ActiveDirectoryGroupType groupType = inputWSGroup.GroupType; switch (groupType) { case ActiveDirectoryGroupType.Distribution: { groupToPopulate.GroupCategory = new ADGroupCategory?(ADGroupCategory.Distribution); break; } case ActiveDirectoryGroupType.Security: { groupToPopulate.GroupCategory = new ADGroupCategory?(ADGroupCategory.Security); break; } } this.PopulateADPrincipalFromWebServiceData(inputWSGroup, groupToPopulate); }