msgraph-sdk-powershell icon indicating copy to clipboard operation
msgraph-sdk-powershell copied to clipboard

Get-MGBetaUser does not return any data in the Authentication property

Open ykuijs opened this issue 8 months ago • 0 comments

Describe the bug

When I run the Get-MgBetaUser cmdlet, the property Authentication in the returned object is empty. I am specifically interested in the Authentication\Requirements\PerUserMfaState property and that remains empty. Image

When I use Invoke-MgGraphRequest to use the Graph API, it returns the requested information just fine: Image

I also tried adding the "-Property Authentication" parameter to the cmdlet, but that didn't make any difference.

Expected behavior

Return the a fully populated object in the Authentication property

How to reproduce

(Get-MgBetaUser -UserId [GUID]).Authentication.Requirements

SDK Version

No response

Latest version known to work for scenario above?

2.26.1

Known Workarounds

Use the Invoke-MgGraphRequest cmdlet to call the API directly, but that is much slower since I then have to call into that API over and over again.

Debug output

Click to expand log ```
</details>


### Configuration

- OS: Windows 11
- PS: v5.1 and v7.5.0

### Other information

I am using the Beta cmdlet, since the Requirements property in the Authentication property is not yet part of the v1.0 API.

ykuijs avatar Mar 21 '25 12:03 ykuijs