Set-​Azure​AD​User​Thumbnail​Photo

Set the thumbnail photo for a user

Syntax

Set-AzureADUserThumbnailPhoto
   -FilePath <String>
   [-ObjectId <String>]
   [<CommonParameters>]
Set-AzureADUserThumbnailPhoto
   -FileStream <Stream>
   [-ObjectId <String>]
   [<CommonParameters>]
Set-AzureADUserThumbnailPhoto
   -ImageByteArray <Byte[]>
   [-ObjectId <String>]
   [<CommonParameters>]

Description

This cmdlet is used to set the thumbnail photo for a user

Examples

Example 1

PS C:\WINDOWS\system32> Set-AzureADUserThumbnailPhoto -ObjectId ba6752c4-6a2e-4be5-a23d-67d8d5980796 -FilePath D:\UserThumbnailPhoto.jpg

This example sets the thumbnail photo of the user specified witht eh PObjectId parameter to the image specified with the FilePath parameter

Required Parameters

-FilePath

The file path of the image to be uploaded as the user thumbnail photo

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False
-FileStream

A filestream that contains the user thumbnail photo

Type:Stream
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False
-ImageByteArray

An Image Byte Array that contains the user thumbnail photo

Type:Byte[]
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False

Optional Parameters

-ObjectId

The Object ID of the user for which the user thumbnail photo is set

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

System.String

System.IO.Stream System.Byte[]

Outputs

System.Object