Based on above configurations and code logic, the team Id list is get from flow.externalUrl.user which is mapped to higherLevelGroupId in _flowteam collection, but the code logic is query against _id.
Changelog
Changed
For the case flow.externalUrl.user is configured but flow.externalUrl.team is not configured. query _flowteam collection against higherLevelGroupId instead of *_id.
Closes #
A defect was found on Core Flow with following configuration: non-admin user always get empty team list
Based on above configurations and code logic, the team Id list is get from
flow.externalUrl.user
which is mapped to higherLevelGroupId in _flowteam collection, but the code logic is query against _id.Changelog
Changed
flow.externalUrl.user
is configured butflow.externalUrl.team
is not configured. query _flowteam collection against higherLevelGroupId instead of *_id.