Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
I want to get all users in all groups from my Sharepoint-Site, is this possible? if so, how do I do this?
You could try Azure AD Graph REST API for that purpose, in particular Get User(s) operation, for example:
GET https://graph.windows.net/contoso.onmicrosoft.com/users?api-version=2013-04-05 HTTP/1.1
Authorization: Bearer eyJ0eX ... FWSXfwtQ
Required, but never shown