Closed nirm-silverfort closed 2 weeks ago
Hi, just managed to get the data for a single user request, e.g https://graph.microsoft.com/v1.0/users/0ad2fb25-a8b6-4ed3-8a36-ebb6a4efa5e6?$select=id,userPrincipalName,signInSessionsValidFromDateTime,signInActivity
Is it by design?
If the answer is yes, I think you should emphasize the fact that the signInActivity
attribute is relevant for a single user request (by id) and not for all users or the delta
api.
And I would like to ask to add that data as a feature request.
If the answer is no, then there is a bug.
I'm connected to my Azure tenant and I have an
Azure Active Directory Premium P1
license. I'm using the explorer to query the following:https://graph.microsoft.com/v1.0/users/delta?$select=id,signInActivity
I want to get all kinds of user attributes and I recently tried to add thesignInActivity
attribute to get sign-in related data.Expected: query should be successful with all the requested data (this is based on the docs). Actual: query response returns the following error:
As far as I know all the relevant prerequisites are fulfilled, as mentioned in https://learn.microsoft.com/en-us/graph/api/resources/user?view=graph-rest-1.0 under the![image](https://github.com/microsoftgraph/microsoft-graph-explorer-v4/assets/162027073/7a17ed11-dd31-4213-92f2-010df02fe226)
signInActivity
attribute.AuditLog.Read.All
permission is enabled, can be seen here:How to reproduce Just run the query in the explorer
My thoughts Maybe it is related to the fact that in the docs the
AuditLog.Read.All
is needed, but in the query's permission we can see that it is not even mentioned.Thanks