Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Add ability to invoke generic Graph methods #873

Closed
mdressel opened this issue Jun 29, 2021 · 1 comment · Fixed by #1820
Closed

[FEATURE] Add ability to invoke generic Graph methods #873

mdressel opened this issue Jun 29, 2021 · 1 comment · Fixed by #1820
Assignees
Labels
enhancement New feature or request

Comments

@mdressel
Copy link

Is your feature request related to a problem? Please describe.
I wasn't going to suggest this feature, but then I saw Invoke-PnPSPRestMethod and thought what I am asking seems similar.

What I am looking for is a "catch all" way to make Graph API requests that aren't currently supported in PnP.PowerShell. This is important to me because I need access to the commands I listed in #872 and I don't have a lot of good options to work around needing those commands.

In my case, this is because the MsGraph-SDK-PowerShell library doesn't work in Azure Automation. I am sure others will have different things that cause them to have the same issue.

Describe the solution you'd like
Add a new command like Invoke-PnPGraphMethod

Describe alternatives you've considered
Most people could probably install and use the MsGraph-SDK-PowerShell library. This doesn't work for me because they don't have the ability to either accept the AccessToken from PnP.PowerShell or accept a -CertificateBase64Encoded parameter

Additional context
For my specific issue, if the MsGraph-SDK-PowerShell makes it so I can authenticate from Azure Automation I can work around this need.

@mdressel mdressel added the enhancement New feature or request label Jun 29, 2021
@gautamdsheth gautamdsheth self-assigned this Jul 2, 2021
gautamdsheth pushed a commit that referenced this issue May 3, 2022
* support additional headers

* JsonToPSObject Converter

* #873 Invoke-PnPGraphMethod

* use json helper to convert to psobject

* Invoke-PnPGraphMethod docs correct format

* resolved bug in Url param, support beta and v1.0
@gautamdsheth
Copy link
Collaborator

@mdressel - Closing this feature request.

@4ndri submitted a PR which has been merged.

You will now be able to use Invoke-PnPGraphMethod to execute direct calls to the MSGraph endpoints !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants