Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,645 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
How to Get the list of user's profile pictures from Microsoft Graph using PowerShell?
I want to download the User's profile pictures from MS Graph, Azure AD, and Delve.
Is there a way or Powershell script available?
Microsoft Graph PowerShell SDK would be a good place to start. Since it is not possible to get list of user profile picture, you may have to get the users list then perform the Get-MgUserPhoto -UserId user_id operation for each of them
>$users = Get-MgUser
>for($i = 0; $i -lt $users.length; $i++){ Get-MgUserPhotoContent -UserId $users[$i].id }