get roles by type simplified,
updated infinite recursion fix for security/user/{userId}/groups to get groups TODO: refactor to avoid needing this