-
Notifications
You must be signed in to change notification settings - Fork 20
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
What are the best practices for get UPN? #258
Comments
MAM SDK API methods that take UPNs to specify identities are deprecated since MAM SDK 10.2.1. They will be removed completely at the next major version increment as UPN is not a reliable parameter to uniquely identify a user account - it can change overtime; two different accounts could share the same UPN and so on. In order to avoid inconsistencies relating to UPNs, this change has been introduced. |
@manupa-ms My app is determining if the email address entered by the user in the app matches the UPN that is retrieved from the MAM SDK.
I would appreciate a link to the JavaDoc for this method. |
All methods returning UPN strings would be deprecated in a future version. |
@manupa-ms Is there a way to map OID to UPN in Android using the MSAL API, as in the iOS answer here? |
Questions
I am currently using the following code to get the UPN.
It is not annotated with a deprecated annotation, but the documentation seems to indicate that this is not the recommended method.
https://microsoftconnect.github.io/ms-intune-app-sdk-android/reference/com/microsoft/intune/mam/policy/MAMUserInfo.html
Checking the alternative method, it is an API to get the OID.
I have confirmed that I can get the OID, but how do I get the UPN?
Thank you in advance.
Details
The text was updated successfully, but these errors were encountered: