[security] Fix for multiple occurrences of groups on the group list