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

Added -OutStream to Invoke-PnPGraphMethod #2976

Merged
merged 2 commits into from
Apr 5, 2023

Conversation

KoenZomers
Copy link
Collaborator

@KoenZomers KoenZomers commented Apr 5, 2023

Type

  • Bug Fix
  • New Feature
  • Sample

Related Issues?

N/A

What is in this Pull Request ?

Added -OutStream to Invoke-PnPGraphMethod which allows for the response to be written to a memory stream which would allow for things such as this which will get the user profile photo of a user and in memory upload it to SharePoint Online:

Invoke-PnPGraphMethod "https://graph.microsoft.com/v1.0/users/user@contoso.com/photo/`$value" -OutStream | Add-PnPFile -FileName user.jpg -Folder "Shared Documents"

@gautamdsheth gautamdsheth merged commit 05fb0df into pnp:dev Apr 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants