Presence.ReadWrite
Allows the app to read the presence information and write activity and availability on behalf of the signed-in user. Presence information includes activity, availability, status note, calendar out-of-office message, timezone and location.
Permission Details
Read and write a user's presence information
Allows the app to read the presence information and write activity and availability on behalf of the signed-in user. Presence information includes activity, availability, status note, calendar out-of-office message, timezone and location.
8d3c54a7-cf58-4773-bf81-c0cd6ad522bb
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
activity |
StringNullable |
The supplemental information to a user's availability. Possible values are available, away, beRightBack, busy, doNotDisturb, offline, outOfOffice, presenceUnknown. |
availability |
StringNullable |
The base presence information for a user. Possible values are available, away, beRightBack, busy, doNotDisturb, focusing, inACall, inAMeeting, offline, presenting, presenceUnknown. |
id |
String |
The unique identifier for the user. |
outOfOfficeSettings |
outOfOfficeSettings |
The out of office settings for a user. |
sequenceNumber |
StringRead-onlyNullable |
The lexicographically sortable String stamp that represents the version of a presence object. |
statusMessage |
presenceStatusMessage |
The presence status message of a user. |
workLocation |
userWorkLocation |
Represents the user’s aggregated work location state. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"activity": "String",
"availability": "String",
"id": "String (identifier)",
"outOfOfficeSettings": {
"@odata.type": "#microsoft.graph.outOfOfficeSettings"
},
"sequenceNumber": "String",
"statusMessage": {
"@odata.type": "#microsoft.graph.presenceStatusMessage"
},
"workLocation": {
"@odata.type": "microsoft.graph.userWorkLocation"
}
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
statusMessage |
presenceStatusMessage |
Presence status message of a user. |
Graph Methods
Microsoft Graph v1.0 endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph beta endpoints are mapped directly from refreshed Microsoft Learn permissions tables.
Microsoft Graph PowerShell v1.0 commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Microsoft Graph PowerShell beta commands are mapped directly from refreshed Microsoft Learn PowerShell snippets.
Code Examples
// Code snippets are only available for the latest version. Current version is 5.x
// To initialize your graphClient, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=csharp
await graphClient.Me.Presence.ClearAutomaticLocation.PostAsync();
const options = {
authProvider,
};
const client = Client.init(options);
await client.api('/me/presence/clearAutomaticLocation')
.post();
Import-Module Microsoft.Graph.CloudCommunications
# A UPN can also be used as -UserId.
Clear-MgUserPresenceAutomaticLocation -UserId $userId
# Code snippets are only available for the latest version. Current version is 1.x
from msgraph import GraphServiceClient
# To initialize your graph_client, see https://learn.microsoft.com/en-us/graph/sdks/create-client?from=snippets&tabs=python
await graph_client.me.presence.clear_automatic_location.post()
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Delegated permissions and search for Presence.ReadWrite
Grant Admin Consent
Users can consent to this permission during sign-in.