Skip to content

No cmdlets to add/remove a user's sponsors #3534

@Skaldhor

Description

@Skaldhor

Describe the bug

There are no cmdlets to add/remove a user's sponsors.
The Graph API documentation also lists no pwsh examples: https://learn.microsoft.com/en-us/graph/api/user-post-sponsors?view=graph-rest-1.0&tabs=http

Expected behavior

Cmdlet Get-MgUserSponsor exists and is working as expected, however I'm missing the cmdlets to add/remove them.
They should be called:

  • New-MgUserSponsor / Add-MgUserSponsor
  • Remove-MgUserSponsor

How to reproduce

Run

Get-Command -Noun *sponsor* -Module Microsoft.Graph.Users
Get-Command -Noun *sponsor* -Module Microsoft.Graph.Beta.Users

and see that only the Get-cmdlet is returned.

SDK Version

2.35.1

Latest version known to work for scenario above?

No response

Known Workarounds

As a workaround you can use the REST-API directly or invoke it via Invoke-GraphRequest

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

_No response_

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions