Added user details API function