Edit

Share via


Set-AzureADUserThumbnailPhoto

Set the thumbnail photo for a user

Syntax

File (Default)

Set-AzureADUserThumbnailPhoto
    -FilePath <String>
    [-ObjectId <String>]
    [<CommonParameters>]

Stream

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

ByteArray

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 aaaaaaaa-0000-1111-2222-bbbbbbbbbbbb -FilePath D:\UserThumbnailPhoto.jpg

This example sets the thumbnail photo of the user specified with the ObjectId 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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

File
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-FileStream

A filestream that contains the user thumbnail photo

Parameter properties

Type:Stream
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

Stream
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-ImageByteArray

An Image Byte Array that contains the user thumbnail photo

Parameter properties

Type:

Byte[]

Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

ByteArray
Position:Named
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:True
Value from remaining arguments:False

-ObjectId

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

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

String

System.IO.Stream System.Byte[]

Outputs

Object