RANGER-192:Fixed spinning wheel in user detail page when there are many groups

Signed-off-by: sneethiraj <sneethir@apache.org>