Skip to content

Uploading user photo #54

@baywet

Description

@baywet

Hi!
First off great job on this new PS "sdk", I think it looks super promising!
Now the question: I'm trying to upload the user's picture, which I think will be a common scenarios for IT pros around the world.
I'm now sure how I should pass the photo binaries however, I've tried something like that and a few variations but it doesn't seem to be working.

update-userphoto -UserId ef1c916a-3135-4417-ba27-8eb7bd084193 -BodyParameter ([System.IO.File]::ReadAllBytes("C:\Users\vince\Desktop\00003IMG_00003_BURST20170402115324.jpg"))

At this point I'm not sure whether I missed something (hence the question) or whether this feature is currently missing in the SDK.
I'm running the beta SDK, updated/installed today.
Thanks for the help!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions