I am a bit confused on what does
Web.SiteUsers include in CSOM? as per the documentation it includes the users which belong to a site collection, but what does belong mean?
Does it mean users who have permission on the site, even if the permission was not granted directly to the user but through an AD group or through the "Everyone Except external" group?
I need a way to get all the users which can access the site regardless of the way they have been granted access to. Can anyone advise?