Skip to content

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

@ykuijs

Description

@ykuijs

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions