Hi,
The GetMemberUsingFilter function returns a list of MemberInfo.
You can get the Display Member Group ID and/or Name out of each Member Info object this way:
Dim UD1mbrName As String = "Ud1MemberName"
Dim DimName As String = "Ud1DimensionName"
Dim mbrInfo As MemberInfo = BRApi.Finance.Metadata.GetMember(si, dimTypeId.UD1, UD1mbrName)
Dim displayMbrGroupId As Guid = mbrInfo.Member.DisplayMemberGroupUniqueID
Dim grpInfoex As GroupInfoEx = BRApi.Security.Admin.GetGroupInfoEx(si,displayMbrGroupId)
Dim displayMbrGroupName As String = grpInfoex.GroupInfo.Group.Name
brapi.ErrorLog.LogMessage(si, $"UD1: {UD1mbrName}; display group: {displayMbrGroupName}")