-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to enroll another account after the previous account is signed out of Company Portal #479
Comments
@MAgungHKM Remediation - Or, have the user sign in with the new work or school account and remove the existing MAM enrolled account. |
Hi @kanishkaBagga, For your second suggestion, how do you remove the existing MAM enrolled account (without resetting the device)? they've tried to sign in with the new account but met with the screenshot that I was referring to on my first post. |
Hi @kanishkaBagga, any update on this? |
@MAgungHKM - Selective wipe - When the app is selectively wiped, the SDK will call the wipeDataForAccountId method in IntuneMAMPolicyDelegate. The app is responsible for removing the specified user's account and any data associated with it. The SDK is capable of removing all files owned by the user and will do so if the app returns FALSE from the wipeDataForAccountId call. Please refer - https://learn.microsoft.com/en-us/mem/intune/developer/app-sdk-ios-phase5 |
@kanishkaBagga We have tried to implement the selective wipe logic, but since Intune Auto-Enrollment runs first before our selective wipe code, this method wouldn't work either. |
@MAgungHKM - are you using AutoEnrollOnLaunch Option? https://learn.microsoft.com/en-us/mem/intune/developer/app-sdk-ios-phase3#let-intune-handle-authentication-and-enrollment-at-launch |
Okay noted, we'll try it first, thanks @kanishkaBagga! |
Describe the bug:
Unable to proceed to our App after the user signed in to Company Portal using another account. It seems that the Intune SDK is trying to enroll using the previous account email, and we need to click on "sign in with another account" option. But, after signing in using the current account it will show an error, refer to the screenshot below.
Both accounts is able to use the App on a fresh device.
Uninstalling the app doesn't help to fix this at all. The previous account seems to be cached from the Keychain, that means the only way to clear it is to factory reset the device.
We have tried to implement a data wipe logic during the App first launch after install. But, the Intune SDK runs first before our code, so that doesn't work either.
To Reproduce
Steps to reproduce the behavior:
Expected behavior:
Able to replace the enrolled account. At least clear the cached account on uninstall or using a switch in the Settings App similar to intune wrapping tool.
Screenshots and logs:
Smartphone (please complete the following information):
Intune App SDK for iOS (please complete the following information):
What version of the Intune SDK are you using? Are you using the latest version? Latest
What platform is your app based in (native, Xamarin based, Cordova, etc)? Native
For errors during build, does the app build without Intune SDK integration? No
For errors post build, does the app launch without being Intune SDK integrated? No
Who is the customer? Our user
Do you see a trend with it only being reproduced on a specific device? Happens on all devices
The text was updated successfully, but these errors were encountered: