Set the preferred availability and activity status for a user.
If the preferred presence of a user is set, the user's presence shows as the preferred status.
Preferred presence takes effect only when at least one presence session exists for the user.
Otherwise, the user's presence shows as Offline.
A presence session is created as a result of a successful setPresence operation, or if the user is signed in on a Microsoft Teams client.
For more details, see presence sessions and time-out and expiration.
Credentials for a proxy server to use for the remote call
Parameter properties
Type:
System.Management.Automation.PSCredential
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
-ProxyUseDefaultCredentials
Use the default credentials for the proxy
Parameter properties
Type:
System.Management.Automation.SwitchParameter
Default value:
False
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
-ResponseHeadersVariable
Optional Response Headers Variable.
Parameter properties
Type:
System.String
Supports wildcards:
False
DontShow:
False
Aliases:
RHV
Parameter sets
(All)
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-WhatIf
Runs the command in a mode that only reports what would happen without performing the actions.
Parameter properties
Type:
System.Management.Automation.SwitchParameter
Supports wildcards:
False
DontShow:
False
Aliases:
wi
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.
To create the parameters described below, construct a hash table containing the appropriate properties.
For information on hash tables, run Get-Help about_Hash_Tables.
BODYPARAMETER <IPaths16OmbuoCommunicationsPresencesPresenceIdMicrosoftGraphSetuserpreferredpresencePostRequestbodyContentApplicationJsonSchema>: .
[(Any) <Object>]: This indicates any property can be added to this object.
[Activity <String>]:
[Availability <String>]:
[ExpirationDuration <TimeSpan?>]:
INPUTOBJECT <ICloudCommunicationsIdentity>: Identity Parameter
[AdhocCallId <String>]: The unique identifier of adhocCall
[AttendanceRecordId <String>]: The unique identifier of attendanceRecord
[AudioRoutingGroupId <String>]: The unique identifier of audioRoutingGroup
[CallId <String>]: The unique identifier of call
[CallRecordId <String>]: The unique identifier of callRecord
[CallRecordingId <String>]: The unique identifier of callRecording
[CallTranscriptId <String>]: The unique identifier of callTranscript
[CommsOperationId <String>]: The unique identifier of commsOperation
[ContentSharingSessionId <String>]: The unique identifier of contentSharingSession
[EngagementConversationMessageId <String>]: The unique identifier of engagementConversationMessage
[EngagementConversationMessageId1 <String>]: The unique identifier of engagementConversationMessage
[EngagementConversationMessageReactionId <String>]: The unique identifier of engagementConversationMessageReaction
[MeetingAttendanceReportId <String>]: The unique identifier of meetingAttendanceReport
[OnlineMeetingEngagementConversationId <String>]: The unique identifier of onlineMeetingEngagementConversation
[OnlineMeetingId <String>]: The unique identifier of onlineMeeting
[ParticipantId <String>]: The unique identifier of participant
[PresenceId <String>]: The unique identifier of presence
[SessionId <String>]: The unique identifier of session
[UserId <String>]: The unique identifier of user