Security.User

I'm not sure if I'm missing something, but it seems like as of 2 versions ago, the Security.User object is no longer returning a value. I need the Security.User.Id in order to find various rows in linked tables, but it's now returning null and that wasn't happening last week. Has there been a change in usage? Is there a different way to get the Id for a user?

Hi @kgordon,

According to our logs we haven't made any changes to the security related code in the last two months. You either try checking your source control history for changes that may affect Security.User or download an older version of Radzen to see if it makes a difference.

I finally found the cause, it was a bit bizarre. My user had a different email address vs the user name (I use the email address for the username, but it was different for some reason.) This caused the Security.User object to return null when looking for the user because it searches on the email address instead of the username. I'm not sure why I had the difference in my case, it's something I'll keep an eye out for to see if it happens again.