Forum Discussion
ndrw
Jun 26, 2025Copper Contributor
Microsoft Graph API : Some attributes are null when filtering by signInActivity/lastSignInDateTime
Hi. I have trouble retrieving the user's givenName and surname using Microsoft Graph API together with filtering using signInActivity/lastsignInDateTime. Here is the url I'm using: const g...
ndrw
Jun 26, 2025Copper Contributor
I have Directory.ReadAll permissions. Furthermore, I don't think it's a permissions issue because if I use a different filter, I can get data for the givenName and surname attributes. A sample url with filter that works is:
const graphUsersUrl =
"https://graph.microsoft.com/V1.0/users?$top=999&$filter=startswith(givenName,'a')&$select=id,givenName,surname,identities,signInActivity";