List activities (preview)
Namespace: microsoft.graph
Important
APIs under the /beta
version in Microsoft Graph are subject to change. Use of these APIs in production applications is not supported. To determine whether an API is available in v1.0, use the Version selector.
List the recent activities that took place on an item or under a hierarchy.
Note: Activities is in a limited preview and is not yet available to all tenants.
This API is available in the following national cloud deployments.
Global service | US Government L4 | US Government L5 (DOD) | China operated by 21Vianet |
---|---|---|---|
✅ | ✅ | ✅ | ✅ |
Permissions
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.
Permission type | Least privileged permissions | Higher privileged permissions |
---|---|---|
Delegated (work or school account) | Files.Read | Files.Read.All, Files.ReadWrite, Files.ReadWrite.All, Sites.Read.All, Sites.ReadWrite.All |
Delegated (personal Microsoft account) | Not supported. | Not supported. |
Application | Files.Read.All | Files.ReadWrite.All, Sites.Read.All, Sites.ReadWrite.All |
HTTP request
GET /drives/{drive-id}/activities
GET /drives/{drive-id}/items/{item-id}/activities
GET /sites/{site-id}/lists/{list-id}/activities
GET /sites/{site-id}/lists/{list-id}/items/{item-id}/activities
Example
Request
GET https://graph.microsoft.com/beta/me/drive/activities
Response
HTTP/1.1 200 OK
Content-type: application/json
{
"value": [
{
"action": {
"comment": {}
},
"actor": {
"user": {
"displayName": "Xavier Wilke"
}
},
"id": "EJalEvjV1EgIYFQAAAAAAA==",
"times": {
"recordedTime": "2017-07-29T18:34:40Z"
}
},
{
"action": {
"edit": {},
"version": {
"newVersion": "2.0"
}
},
"actor": {
"user": {
"displayName": "Judith Clemons"
}
},
"id": "cInT6/fV1EgFYFQAAAAAAA==",
"times": {
"recordedTime": "2017-07-29T16:23:35Z"
}
},
{
"action": {
"mention": {
"mentionees": [
{
"user": {
"displayName": "Judith Clemons"
}
}
]
}
},
"actor": {
"user": {
"displayName": "Misty Suarez"
}
},
"id": "EBJa0vPV1EjFX1QAAAAAAA==",
"times": {
"recordedTime": "2017-07-28T20:14:14Z"
}
},
{
"action": {
"rename": {
"oldName": "Document2.docx"
}
},
"actor": {
"user": {
"displayName": "Misty Suarez"
}
},
"id": "QFJFlfPV1Ei/X1QAAAAAAA==",
"times": {
"recordedTime": "2017-07-28T20:12:32Z"
}
},
{
"action": {
"create": {}
},
"actor": {
"user": {
"displayName": "Misty Suarez"
}
},
"id": "IJydkPPV1Ei9X1QAAAAAAA==",
"times": {
"recordedTime": "2017-07-28T20:02:24Z"
}
}
]
}