Search for user groups function added