MailboxSettings.Read
.Note: Using the delegated (OAuth) connection type will only allow to insert the connected user's ID.
Parameter | Description |
---|---|
User ID or User Principal Name | The ID or userPrincipalName of the user. If connected via OAuth , only the connected user’s ID is supported. With App Registration , any user ID can be used. |
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#Me/mailFolders('inbox')/messageRules",
"value": [
{
"id": "AQAAAJ5dZp8=",
"displayName": "Remove spam",
"sequence": 1,
"isEnabled": true,
"hasError": false,
"isReadOnly": false,
"conditions": {
"subjectContains": [
"enter to win"
]
},
"actions": {
"delete": true,
"stopProcessingRules": true
}
},
{
"id": "AQAAAJ5dZqA=",
"displayName": "From partner",
"sequence": 2,
"isEnabled": true,
"hasError": false,
"isReadOnly": false,
"conditions": {
"senderContains": [
"ADELE"
]
},
"actions": {
"stopProcessingRules": true,
"forwardTo": [
{
"emailAddress": {
"name": "Alex Wilbur",
"address": "AlexW@contoso.onmicrosoft.com"
}
}
]
}
}
]
}
Was this page helpful?