| title | presence: clearAutomaticLocation |
|---|---|
| description | Clear the automatic work location signal for a user. |
| author | garchiro7 |
| ms.date | 12/15/2025 |
| ms.localizationpriority | medium |
| ms.subservice | cloud-communications |
| doc_type | apiPageType |
Namespace: microsoft.graph
Clear the automatic work location signal for a user. After clearing, the user’s final aggregated work location is recomputed according to the precedence rules:
- Precedence: manual > automatic > scheduled
- If a manual location is set, clearing the automatic signal doesn't change the final location because the manual location still takes precedence.
- If no manual location is set, the final location falls back to the scheduled signal (calendar working hours and location – WHL) for the current segment, or to none if there's no scheduled signal.
Use this operation when you need to remove the current autodetected signal without affecting manual or scheduled layers.
[!INCLUDE national-cloud-support]
Choose the permission or permissions marked as least privileged for this API. Use a higher privileged permission or permissions only if your app requires it. For details about delegated and application permissions, see Permission types. To learn more about these permissions, see the permissions reference.
[!INCLUDE permissions-table]
POST /me/presence/clearAutomaticLocation| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this action returns a 200 OK response code.
The following example shows a request.
POST https://graph.microsoft.com/v1.0/me/presence/clearAutomaticLocation[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
HTTP/1.1 200 OK