Using the following rest api resource
/_api/web/getuserbyid(1), I can get only the users who already have access to the site.
My problem is that I would like to get the user properties for all users from active directory,whether they have access to the site or not.
is there a way to achieve it? User profile service is not reliable.