Open MikeP0911 opened 1 month ago
Hi @ChismanRaheem, I have included the corresponding code and the screenshots for your reference, kindly check it. Also included the version details in other info section, FYI.. Thanks.
Hi @MikeP0911
It looks like you're encountering an issue where fullData
is coming back null when using IntuneMAMAppConfigManager.Instance.AppConfigForIdentity(GetAccountInfo().Email)
in your MAUI iOS application.
🛠️Here are a few things you might want to check:
Ensure Correct Identity: Make sure that the email you're passing to AppConfigForIdentity
is the correct managed user's UPN (User Principal Name). Sometimes, issues arise if the identity is not correctly specified.
Check Intune Configuration: Verify that the Intune app configuration policy is correctly set up and assigned to the user or device. Missing or incorrect configurations can lead to null values being returned.
IntuneMAMUPN Setting: Ensure that the IntuneMAMUPN
setting is configured in the MDM app config policy. This setting helps the Intune SDK determine the device-managed user and include the MDM app config in the results.
Recommendation: Use a debugger to step through the code and inspect the value of the email variable before it is passed to AppConfigForIdentity. This will allow you to see the exact value being used. And if possible, please write a unite test to ensure that GetAccountInfo().Email
returns the expected email address.
[!NOTE] Ref : https://learn.microsoft.com/en-us/mem/intune/apps/data-transfer-between-apps-manage-ios
Hi @ChismanRaheem
Thank you for the reply, we have IntuneMAMUPN setting already in Intune and also, we have value as proper email in GetAccountInfo().Email method. After going through your steps mentioned above, again rechecked and everything seems to be proper (IntuneMAMUPN keyvalue in configuration and email we are passing to AppConfigForIdentity method), but still, it's not retrieving Appconfig values from Intune in MAUI code. Not sure what went wrong, kindly check this..
Also, kindly share if any sample available for connecting with Intune (MSAL integration) in MAUI IOS app for our reference. Thanks again.
Hi @ChismanRaheem Any update on this? Kindly share if any sample available for connecting with Intune (MSAL integration) in MAUI IOS app for our reference.
Hi @ChismanRaheem to add with the existing issue in MAUI, after updating to latest Intune SDK(version-19.5.0), the method- "public virtual IntuneMAMAppConfig AppConfigForIdentity(string? identity)" is deprecated in IntuneMAMAppConfigManager class and asked to use the new method instead- "public virtual IntuneMAMAppConfig AppConfigForAccountId(string? accountId)" which is also failing to get the AppConfig values from Intune.
So please check this and update as it is a blocker for us. Thanks.
We are trying to migrate our Xamarin IOS app to MAUI with MSAL integration. Intune logged in successfully and also acquiring access token, but while getting App config values from the Intune portal it returns NULL value, so we are unable to proceed further. This used to work properly in Xamarin.Forms.
Steps to reproduce the behavior:
Expected behavior: IntuneMAMAppConfig for given identity should return corresponding AppConfig values.
Screenshots and logs: Please find below the corresponding code:
` Issue of getting NULL value screenshot is attached below:
Smartphone:
Intune App SDK for iOS:
Additional context: Kindly share if any sample available for connecting with Intune (MSAL integration) in MAUI IOS app.