Set-AzureADUserThumbnailPhoto

Set the thumbnail photo for a user

Syntax

Set-AzureADUserThumbnailPhoto
   [-ObjectId <String>]
   -FilePath <String>
   [<CommonParameters>]
Set-AzureADUserThumbnailPhoto
   [-ObjectId <String>]
   -FileStream <Stream>
   [<CommonParameters>]
Set-AzureADUserThumbnailPhoto
   [-ObjectId <String>]
   -ImageByteArray <Byte[]>
   [<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 with the PObjectId parameter to the image specified with the FilePath parameter

Parameters

-FilePath

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

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

-FileStream

A filestream that contains the user thumbnail photo

Type:Stream
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ImageByteArray

An Image Byte Array that contains the user thumbnail photo

Type:Byte[]
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

-ObjectId

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

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

Inputs

String

System.IO.Stream System.Byte[]

Outputs

Object