| title | List session objects |
|---|---|
| description | Get a list of the sessions in Security Copilot. |
| author | spunukol |
| ms.date | 07/17/2025 |
| ms.localizationpriority | medium |
| ms.subservice | security-copilot |
| doc_type | apiPageType |
Namespace: microsoft.graph.security.securityCopilot
[!INCLUDE beta-disclaimer]
Get a list of the sessions in Security Copilot.
[!INCLUDE national-cloud-support]
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.
[!INCLUDE permissions-table]
[!INCLUDE rbac-security-copilot-apis]
GET /security/securityCopilot/workspaces/{workspaceId}/sessionsThis method supports the $count, $filter, $select and $top OData query parameters to help customize the response. For general information, see OData query parameters.
| Name | Description |
|---|---|
| Authorization | Bearer {token}. Required. Learn more about authentication and authorization. |
Don't supply a request body for this method.
If successful, this method returns a 200 OK response code and a collection of session objects in the response body.
The following example shows a request.
GET https://graph.microsoft.com/beta/security/securityCopilot/workspaces/default/sessions[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
[!INCLUDE sample-code] [!INCLUDE sdk-documentation]
The following example shows the response.
Note: The response object shown here might be shortened for readability.
HTTP/1.1 200 OK
Content-Type: application/json
{
"@odata.context": "https://graph.microsoft.com/beta/$metadata#security/securityCopilot/workspaces('default')/sessions",
"@microsoft.graph.tips": "Use $select to choose only the properties your app needs, as this can lead to performance improvements. For example: GET security/securityCopilot/workspaces('<key>')/sessions?$select=createdDateTime,displayName",
"value": [
{
"id": "f0f54c69-8f8a-4f33-b6e3-386d58b408db",
"createdDateTime": "2025-10-15T15:54:58.4862768Z",
"lastModifiedDateTime": "2025-10-15T15:54:58.4862768Z",
"displayName": null
},
{
"id": "8e95c36e-c9bd-4e14-8317-3cd4332e1e3b",
"createdDateTime": "2025-09-17T19:23:41.1506601Z",
"lastModifiedDateTime": "2025-09-17T19:28:21.2902705Z",
"displayName": "who am i"
}
]
}