Forum Discussion
400 Bad Request UndefinedScope ProfileBadRequestException on /oidc/userinfo for some users
jonenst , I had this same issue, and I found a workaround.
I used this end point instead to get the user info, and it worked https://graph.microsoft.com/v1.0/me
The object returned is slightly different property name wise, but I'm able to get data from it with my personal account.
Hope this helps.
Hi, thanks for the reply. Nice to know I'm not the only one.
I just tested https://graph.microsoft.com/v1.0/me and indeed it returns my name and some other things.
However I can't use it because my code is not specific to azure's oidc provider. My code only gets the user_info endpoint from the https://login.microsoftonline.com/common/v2.0/.well-known/openid-configuration document and uses that.
Do you know if I can report this to the team running "https://graph.microsoft.com/oidc/userinfo" ?
Thanks a lot
- nagarajmarisamyJun 07, 2021Copper ContributorHi, I am also facing the same issue recently, did you found any solution on this?. Thanks in advance.
- DemetreeJun 07, 2021Copper Contributor
jonenst it sounds like this will need to be addressed on the Microsoft side if you're constrained by the values from the config document.
Unfortunately, I'm not aware of what the process to formally report it is.
Cheers,
Demetree
- jonenstSep 15, 2021Copper Contributor
Testing again, it works now. apparently it was fixed this summer in their server.