[FIXED JENKINS-21371] Enhance SecurityRealm API to support queries of the group membership