Skip to content
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

Get-MsolUser for StrongAuthenticationUserDetails are different results that Get-AzureADUser #49247

Closed
JBHorne opened this issue Mar 1, 2020 — with docs.microsoft.com · 8 comments

Comments

Copy link

JBHorne commented Mar 1, 2020

In our environment, the "mobile" field for AzureAD is only populated if the user has a corporate device. Personal mobile numbers are not within this field as this can be seen by all. Instead, our users populate their mobile number and personal email address from within SSPR. We can see this by running:
Get-MsolUser -EnabledFilter EnabledOnly -All | Select UserPrincipalName, DisplayName, MobilePhone, AlternateEmailAddresses, AlternateMobilePhones -ExpandProperty StrongAuthenticationUserDetails

The article above appears to make feature parity with the following command:
Get-AzureADUser | select DisplayName,UserPrincipalName,otherMails,Mobile,TelephoneNumber | Format-Table

However these are very different data sets. The above is reading private data from the MSOL attribute where as the latter is reading the public email address and mobile.

With MSOnline modules being deprecated (you cannot use these within Azure Automation for example ), this means that we need feature parity for reading the StrongAuthenticationUserDetails with the Get-AzureADUser cmdlet.

Moreover, the article is simply incorrect that these are one in the same.


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@BharathNimmala-MSFT
Copy link
Contributor

@JBHorne Thank you for your valuable feedback, our team will further look into and get back to you at the earliest.

@iainfoulds
Copy link
Contributor

Sorry for the delay on this. The engineering work team has acknowledged there isn't feature parity in areas like this, and are also leaning towards the Microsoft Graph API to directly query information as needed. At this time, there's no ETA on those updates being available. Doc updates will be made once there are updates from engineering to share. For now, #please-close

@JBHorne
Copy link
Author

JBHorne commented Apr 29, 2020

I'm not sure why this was closed. The article is still incorrect.

@LRSFC-DanJ
Copy link

LRSFC-DanJ commented Jun 11, 2020

We are also seeing this issue at my workplace. There appears to be no way to access or update the Authentication Phone or Authentication Email properties of an Azure AD user using the AzureAD v2 PowerShell module.

We also checked through Graph Explorer but could not see those properties represented in Microsoft Graph either.

@JasonRBeer
Copy link
Contributor

I was reading through this article and came here to post essentially this same issue. This really shouldn't be closed. The article should be updated.

Someone who doesn't have a good understanding of PowerShell or Azure AD could easily add a bunch of mobile numbers thinking they would only be used for SSPR. In reality they would be seen by all of the org. This could be a major problem in some organizations.

@lbgo
Copy link

lbgo commented Oct 15, 2021

Still waiting on this.

@LRSFC-DanJ
Copy link

There is actually a method in MS Graph beta now to create the authenticationPhone.
See https://docs.microsoft.com/en-us/graph/api/authentication-post-phonemethods?view=graph-rest-beta&tabs=http
This did not exist previously.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

9 participants