Get user activities

Namespace: microsoft.graph

Get activities for a given user. Unlike the recent OData function, activities without histories will be returned. The permission UserActivity.ReadWrite.CreatedByApp will apply extra filtering to the response, so that only activities created by your application are returned. This server-side filtering might result in empty pages if the user is particularly active and other applications have created more recent activities. To get your application's activities, use the nextLink property to paginate.


One of the following permissions is required to call this API. To learn more, including how to choose permissions, see Permissions.

Permission type Permissions (from least to most privileged)
Delegated (work or school account) UserActivity.ReadWrite.CreatedByApp
Delegated (personal Microsoft account) UserActivity.ReadWrite.CreatedByApp
Application Not supported.

HTTP request

GET /me/activities

Optional query parameters

This method supports some OData Query Parameters to help customize the response. The following query parameters are supported:

  • $expand for the historyItems navigation property.
  • $top to limit the maximum number of items across pages.
  • $filter on the lastModifiedDateTime property for either activities or historyItems, if expanded.

The following are some examples of supported queries with URL encoding:




Request headers

Name Type Description
Authorization string Bearer {token}. Required.

Request body

No request body.


If successful, this method returns the 200 OK response code with the user's activities for your application.



The following is an example of the request.


The following is an example of the response.

HTTP/1.1 200 OK
Content-Type: application/json

    "@odata.context": "$metadata#Collection(userActivity)",
    "@odata.nextLink": "$skiptoken=%24filter%3dlastModifiedDateTime+lt+2018-02-26T18%3a06%3a19.365Z",
    "value": [{
        "@odata.type": "#microsoft.graph.userActivity",
        "activitySourceHost": "",
        "createdDateTime": "2018-02-26T18:34:29.592Z",
        "lastModifiedDateTime": "2018-02-26T18:34:29.607Z",
        "id": "5347642601316252694",
        "appActivityId": "/article?12345",
        "visualElements": {
            "attribution": {
              "iconUrl": "",
              "alternateText": "Contoso, Ltd.",
              "addImageQuery": false,
            "displayText": "Contoso How-To: How to Tie a Reef Knot",
            "description": "How to Tie a Reef Knot. A step-by-step visual guide to the art of nautical knot-tying.",
            "backgroundColor": "#ff0000",
            "content": {
              "$schema": "",
              "type": "AdaptiveCard",
                  "type": "TextBlock",
                  "text": "Contoso MainPage"
        "activationUrl": "",
        "appDisplayName": "Contoso, Ltd.",
        "userTimezone": "Africa/Casablanca",
        "fallbackUrl": "",
        "contentUrl": "",
        "contentInfo": {
            "@context": "",
            "@type": "Article",
            "author": "John Doe",
            "name": "How to Tie a Reef Knot"
        "expirationDateTime": "2018-03-28T18:34:29.607Z",
        "status": "updated"