Example 1: Code snippet Import-Module Microsoft.Graph.CloudCommunications # A UPN can also be used as -UserId. Clear-MgUserPresenceAutomaticLocation -UserId $userId This example shows how to use the Clear-MgUserPresenceAutomaticLocation Cmdlet.