I'd like to be able to pull a couple of basic properties (username/URI, email) from the Azure AD user record into my application, in addition to the user's name. I found the documentation for extending ApplicationUser, and I've added some code to SecurityService.cs that I thought would populate the variables, but I'm not having any luck getting the data into ApplicationUser. Can you assist?
You can use code similar to how we set the Name property - get the corresponding Claim via Principal.FindFirstValue("claim name"). Use the debugger to inspect what the available claims are.