diff --git a/RockWeb/Blocks/Groups/GroupList.ascx.cs b/RockWeb/Blocks/Groups/GroupList.ascx.cs index bb40eacb266..078e80afae2 100644 --- a/RockWeb/Blocks/Groups/GroupList.ascx.cs +++ b/RockWeb/Blocks/Groups/GroupList.ascx.cs @@ -778,6 +778,16 @@ private void BindGrid() var qryGroups = groupService.Queryable() .Where( g => groupTypeIds.Contains( g.GroupTypeId ) && ( !onlySecurityGroups || g.IsSecurityRole ) ); + var rootGroupGuid = GetAttributeValue( AttributeKey.RootGroup ).AsGuidOrNull(); + if ( rootGroupGuid.HasValue ) + { + var parentGroup = groupService.Get( rootGroupGuid.Value ); + if ( parentGroup != null ) + { + qryGroups = qryGroups.Where( g => g.ParentGroupId == parentGroup.Id ); + } + } + string limitToActiveStatus = GetAttributeValue( "LimittoActiveStatus" ); bool showActive = true;