Set the manual work location signal for a user.
The explicit value chosen by a user or an authorized client overrides any automatically detected or scheduled working hours and location.
Set the manual work location signal for a user.
The explicit value chosen by a user or an authorized client overrides any automatically detected or scheduled working hours and location.
Examples
Example 1: Code snippet
Import-Module Microsoft.Graph.CloudCommunications
$params = @{
workLocationType = "office"
placeId = "eb706f15-137e-4722-b4d1-b601481d9251"
}
# A UPN can also be used as -UserId.
Set-MgUserPresenceManualLocation -UserId $userId -BodyParameter $params
This example shows how to use the Set-MgUserPresenceManualLocation Cmdlet.
Parameters
-AdditionalProperties
Additional Parameters
Parameter properties
Type:
System.Collections.Hashtable
Supports wildcards:
False
DontShow:
False
Parameter sets
SetViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
SetExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-BodyParameter
To construct, see NOTES section for BODYPARAMETER properties and create a hash table.
Set the manual work location signal for a user.
The explicit value chosen by a user or an authorized client overrides any automatically detected or scheduled working hours and location.
Parameter properties
Type:
System.String
Supports wildcards:
False
DontShow:
False
Parameter sets
SetViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
SetExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
-Proxy
The URI for the proxy server to use
Parameter properties
Type:
System.Uri
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
-ProxyCredential
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
-UserId
The unique identifier of user
Parameter properties
Type:
System.String
Supports wildcards:
False
DontShow:
False
Parameter sets
SetExpanded
Position:
Named
Mandatory:
True
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
Set
Position:
Named
Mandatory:
True
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
-WorkLocationType
workLocationType
Parameter properties
Type:
System.String
Supports wildcards:
False
DontShow:
False
Parameter sets
SetViaIdentityExpanded
Position:
Named
Mandatory:
False
Value from pipeline:
False
Value from pipeline by property name:
False
Value from remaining arguments:
False
SetExpanded
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 <IPaths4TijaiUsersUserIdPresenceMicrosoftGraphSetmanuallocationPostRequestbodyContentApplicationJsonSchema>: .
[(Any) <Object>]: This indicates any property can be added to this object.
[PlaceId <String>]:
[WorkLocationType <String>]: workLocationType
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