
## ListRules {#listrules}

Get all the messageRule objects defined for the user's Inbox. Permissions One of the following permissions is required to call this API.To learn more, including how to choose permissions, see Permissions. Delegated (work or school account) MailboxSettings.Read Delegated (personal Microsoft account) MailboxSettings.Read Application MailboxSettings.Read

**Returns:** List of inbox rules

```cpp
ListRules(System::SharedPtr < ODataQueryBuilder > queryBuilder)
```

| Parameter | Description |
| --- | --- |
| queryBuilder | Optional OData query builder for filtering rules. |

