Adding an API function to list all users