I am using Intune for enrolling the app through the Company Portal app, and now my question is: How do I get the current users ID (UPN/e-mail) in Xamarin Forms?
In Xamarin.iOS I am using the Intune Wrappers and it works fine with the Authentication but How do I get the UPN?
On Xamarin.Android I have done this:
I’ve setup the project as described here using the SDK and the MAM.Remapper tool. I also added a new application class deriving from MAMApplication.
In my MainActivity I’ve implemented OnMAMCreate like this:
protected override async void OnMAMCreate(Bundle bundle)
{
base.OnMAMCreate(bundle);
Xamarin.Forms.Forms.Init(this, bundle);
LoadApplication(new App());
var userInfo = MAMComponents.GetUserInfo();
var userEmail = userInfo.PrimaryUser;
}
It keeps giving me error saying that the MAMComponents has no such method as GetUserInfo(). I tried digging around in the Assembly browser and did not find anything similar in MAMComponents.
There is no help online at all on Xamarin.Forms integration with Intune.