I am looking for a way to the retrieve the following information for a user
through the REST API for Sharepoint Online (Office 365 subscription).
Can I get this info through the APIs? I am polling users through Graph API and I need this information against the users I get (but since Azure doesn't provide this, I am stuck)
I am aware of the User Profile API
The mentioned in the docs is an unknown in my case. I can't use the discovery service as well.
My understanding is that I could just use
as a host (site URL) to use the User Profile API endpoints. Is this correct?
PS: We are using Client Credentials Flow to obtain the access token (i.e, no user context associated with the token) Moreover, I have gone through CSOM and Powershell options, so I am aware of those. I am interested in the API endpoints.