LPS-34405 Applies entity selection pattern to user_groups
LPS-34405 source formatting