Having obtained a ConfiguredProject,
obtain the reference to the IOutputGroupsService:
IOutputGroupsService outputGroupsService = configuredProject.Services.OutputGroups;
var outputGroup = await outputGroupsService.GetOutputGroupsAsync("Built");Remember that if you need to synchronously block on the result
instead of awaiting it, that you follow the threading rules.