msgraph-sdk-php icon indicating copy to clipboard operation
msgraph-sdk-php copied to clipboard

userPrincipalName and displayName not showing correctly

Open deanobaldwin opened this issue 3 years ago • 2 comments

I've been using the office365ActiveUserDetail query in my PHP application and that has been working without issue. I have, today, discovered that the userPrincipalName and displayName are now showing digits instead of names (I've obfuscated the output) when I run my code:

[userPrincipalName] => 624F6624C7156A901903535xxxxxx [displayName] => 096CA25213B52FDED896B9Dxxxxxxx

I haven't changed anything in my code and cannot find a bug related to this. No matter what tenant I connect to, I get the same output whereas I used to see the user's name/display name. My code was originally using version 1.25 of the Microsoft-graph PHP library and I upgraded to 1.40 this morning but am still seeing the same output.

Any ideas?

Thanks, Dean

deanobaldwin avatar Oct 06 '21 11:10 deanobaldwin

Having done a little more digging, it looks like the values are MD5 encoded strings. I've tested using Microsoft graph query tool and they appear to be serving this. Not sure if this is a bug with the API now to be quite honest.

deanobaldwin avatar Oct 08 '21 14:10 deanobaldwin

@deanobaldwin kindly confirm if this is the request you're making? https://learn.microsoft.com/en-us/graph/api/reportroot-getoffice365activeuserdetail?view=graph-rest-1.0

Ndiritu avatar Oct 06 '22 08:10 Ndiritu

Closing since there's no feedback from customer.

Ndiritu avatar Jan 31 '24 17:01 Ndiritu