microsoftgraph / microsoftgraph/msgraph-sdk-powershell

Passing jsons in POST/PATCH requests is not administrator friendly

Open
#2,943 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type:feature
Dominant language
C#
Stars
898
Forks
230
Avg merge
2d 5h
Merged PRs (30d)
31

Description

Is your feature request related to a problem? Please describe the problem.

We have a set of cloud printing APIs exposed in Microsoft Graph.

Currently Graph generated powershell requires users to provide inputs for POST/PATCH requests as json, which is developer friendly but not admin friendly.
e.g. following is the comparison of Universal Print operations using custom Universal Print powershell module and Graph generated powershell module for sharing printer.

Universal Print powershell module:
New-UPPrinterShare -PrinterId "cdd44642-8fc3-4f55-bce2-d6d8069b40f2" -ShareName "First Floor Printer"

Graph generated powershell module:
$params = @{ DisplayName = "ShareName" AllowAllUsers = $false Printer@odata.bind = https://graph.microsoft.com/v1.0/print/printers/{printerId} }
New-MgPrintShare -BodyParameter $params

Hence, requesting Graph powershell team to address this concern.
This is blocking our team from deprecating Universal Print powershell module in favor of Graph generated powershell module.

Describe the solution you'd like.

Admins can provide required info as named parameters instead of jsons. e.g. consider Universal Print custom powershell module command for sharing printer:

New-UPPrinterShare -PrinterId "cdd44642-8fc3-4f55-bce2-d6d8069b40f2" -ShareName "First Floor Printer"

Additional context?

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file, test, or entry point is identified. Start by reviewing the POST/PATCH examples for Universal Print and Graph-generated PowerShell cmdlets, then determine the generation scope needed to expose inputs as named parameters; done means administrators can use named parameters instead of JSON body parameters.

Written by the indexing model from the issue text.

Assessment

Tech stack
powershell
Domain
cli
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.