I know this has been asked several times but I haven't found a viable solution.
I am building a spfx webpart where I want to display every single user with name, title, email etc.
I am using the pnp-js library for this. When i try to access siteusers (as suggested in so many answers) i only get the ones that i have given permission.
I have given "Everyone" access to the site. I did try the following:
pnp.sp.web.siteUsers.get().then(result => {
console.log(result);
});
But this only returns the groups and the users that i have added manual to the site.
How can I get info about every single user?
The search api is not an option because i would have to a make an HTTP call for each users to get username, email, title etc.