Added application type into the getUsersForAppInstalled function.