ContentActivity.Read
Read contents activity audit log from the audit store.
In short
ContentActivity.Read is available as both an application permission and a delegated permission in the Microsoft Graph API, grouped under the ContentActivity category. Read contents activity audit log from the audit store. It grants read-only access to resources. Application permissions always require admin consent.
Permission Details
Read contents activity audit log from the audit store.
Read contents activity audit log from the audit store.
368425e7-6954-4f5a-9d92-90b75bd580c9
Read contents activity audit log from the audit store.
Read contents activity audit log from the audit store.
62c55b2f-a2b1-4312-8385-be57afd901b4
Properties
Properties is shown from stable Microsoft Graph v1.0 metadata.
| Property | Type | Description |
|---|---|---|
contentMetadata |
processContentRequest |
Defines the input payload. It includes the relevant metadata about the activity, device, and integrated application. |
id |
String |
Unique identifier. |
scopeIdentifier |
StringNullable |
The scope identified from computed protection scopes. |
userId |
StringNullable |
ID of the user. |
JSON Representation
JSON representation is shown from stable Microsoft Graph v1.0 metadata.
{
"@odata.type": "#microsoft.graph.contentActivity",
"id": "String (identifier)",
"userId": "String",
"scopeIdentifier": "String",
"contentMetadata": {
"@odata.type": "microsoft.graph.processContentRequest"
}
}
Relationships
Relationships is shown from stable Microsoft Graph v1.0 metadata.
| Relationship | Type | Description |
|---|---|---|
contentMetadata |
processContentRequest |
Related contentMetadata data exposed by this resource. |
Graph Methods
Microsoft Graph v1.0 endpoints are not available from refreshed Microsoft Learn or Microsoft Graph OpenAPI metadata for this permission.
No API methods available for this version.
Microsoft Graph beta endpoints are not available from refreshed Microsoft Learn or Microsoft Graph OpenAPI metadata for this permission.
No API methods available for this version.
Microsoft Graph PowerShell v1.0 commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsMicrosoft Graph PowerShell beta commands are not available from refreshed Microsoft Learn PowerShell snippets for this permission.
No deterministic PowerShell command map is available for this permission.
Browse PowerShell docsCode Examples
using Azure.Identity;
using Microsoft.Graph;
var scopes = new[] { "ContentActivity.Read" };
var credential = new InteractiveBrowserCredential(
new InteractiveBrowserCredentialOptions
{
ClientId = "YOUR_CLIENT_ID",
TenantId = "YOUR_TENANT_ID",
RedirectUri = new Uri("http://localhost")
});
var graphClient = new GraphServiceClient(credential, scopes);
var response = await graphClient
.WithUrl("https://graph.microsoft.com/v1.0/contentactivity")
.GetAsync();
import { Client } from "@microsoft/microsoft-graph-client";
import { InteractiveBrowserCredential } from "@azure/identity";
const credential = new InteractiveBrowserCredential({
clientId: "YOUR_CLIENT_ID",
tenantId: "YOUR_TENANT_ID",
redirectUri: "http://localhost"
});
const token = await credential.getToken(["ContentActivity.Read"]);
const client = Client.init({
authProvider: (done) => done(null, token.token)
});
const response = await client.api("/contentactivity").get();
Connect-MgGraph -Scopes "ContentActivity.Read"
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/contentactivity"
from azure.identity import InteractiveBrowserCredential
import requests
credential = InteractiveBrowserCredential(
client_id="YOUR_CLIENT_ID",
tenant_id="YOUR_TENANT_ID"
)
token = credential.get_token("ContentActivity.Read")
response = requests.get(
"https://graph.microsoft.com/v1.0/contentactivity",
headers={"Authorization": f"Bearer {token.token}"}
)
print(response.json())
App Registration
Navigate to Azure Portal
Go to App registrations in Microsoft Entra admin center
Add API Permission
Select your app → API permissions → Add a permission → Microsoft Graph
Select Permission Type
Choose Application permissions or delegated permissions and search for ContentActivity.Read
Grant Admin Consent
Application permissions always require admin consent.
Frequently asked questions
What is the ContentActivity.Read Microsoft Graph permission?
ContentActivity.Read is available as both an application permission and a delegated permission in the Microsoft Graph API, grouped under the ContentActivity category. Read contents activity audit log from the audit store. It grants read-only access to resources. Application permissions always require admin consent. It is mapped to the Microsoft Graph contentactivity resource type.
Is ContentActivity.Read an application or a delegated permission?
ContentActivity.Read is available as both an application permission (app-only access, no signed-in user) and a delegated permission (access on behalf of a signed-in user).
Does ContentActivity.Read require admin consent?
Application permissions always require admin consent.
What is the permission ID (GUID) for ContentActivity.Read?
For ContentActivity.Read, the application (app role) ID is 368425e7-6954-4f5a-9d92-90b75bd580c9, and the delegated (OAuth2 scope) ID is 62c55b2f-a2b1-4312-8385-be57afd901b4. These are the real Microsoft Graph identifiers and can be used directly in an app registration manifest.