REST API function added to get subscribed users