BurdullisJason-0130 avatar image
0 Votes"
BurdullisJason-0130 asked BurdullisJason-0130 commented

why is set-mguserphoto or update-mguserphoto read only?

Is there a roadmap or something that will tell me when these commands will no longer be read-only?

· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Please conform if the commands in question are part of the MS Graph PowerShell SDK and what you mean by read-only.

0 Votes 0 ·

YEs both of these commands are part of the Microsoft Graph SDK and should be used to either set or update a photo for a user through PowerShell. But for some reason they are read-only so they cannot actually make any changes. To make changes you have to go to the API or run the older Azure commands set-userphoto.

0 Votes 0 ·

Okay, we are looking into this.

0 Votes 0 ·

I am assuming you trying to set or update the user profile photo using the Graph Powershell SDK. Is that right?

0 Votes 0 ·

That is correct. I currently have some complex code that accesses the Graph API to keep users photos up to date, but I would love to replace it with the SDK, since that is much easier to use.

0 Votes 0 ·
Show more comments

0 Answers