Skip to content

Find-MgGraphCommand returns incorrect API reference link for *-MgUser commands #2867

Closed
@alexandair

Description

@alexandair

Describe the bug

Find-MgGraphCommand returns incorrect API reference link for *-MgUser commands.
Only one for Remove-MgUser is correct, others point to the Intune API reference.

PS> Find-MgGraphCommand -Command *-MgUser | select command,apireferencelink

Command       ApiReferenceLink
-------       ----------------
Get-MgUser    https://learn.microsoft.com/graph/api/intune-onboarding-user-get?view=graph-rest-1.0
Get-MgUser    https://learn.microsoft.com/graph/api/intune-mam-user-list?view=graph-rest-1.0
New-MgUser    https://learn.microsoft.com/graph/api/intune-mam-user-create?view=graph-rest-1.0
Remove-MgUser https://learn.microsoft.com/graph/api/user-delete?view=graph-rest-1.0
Update-MgUser https://learn.microsoft.com/graph/api/intune-onboarding-user-update?view=graph-rest-1.0

Expected behavior

Proper API reference links.

How to reproduce

PS> Find-MgGraphCommand -Command *-MgUser | select command,apireferencelink

SDK Version

2.20.0

Latest version known to work for scenario above?

No response

Known Workarounds

No response

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions