ESC
Type to search...

UserTimelineActivity.Write.CreatedByApp

Export JSON
Export CSV
Copy URL
Print
Delegated Write User Scope

Allows the app to report the signed-in user's app activity information to Microsoft Timeline.

In short

UserTimelineActivity.Write.CreatedByApp is a delegated permission in the Microsoft Graph API, grouped under the UserTimelineActivity category. Allows the app to report the signed-in user's app activity information to Microsoft Timeline. It grants write access to resources. Users can consent to this permission during sign-in.

Permission data: October 3, 2026 at 3:19 AM UTC
Delegated Access App-Only Access

Permission Details

Delegated Permission User consent allowed

Write app activity to users' timeline

Allows the app to report the signed-in user's app activity information to Microsoft Timeline.

Properties

Properties metadata is not available for this permission mapping. View on Microsoft Learn

JSON Representation

JSON representation is not available for this permission mapping. View on Microsoft Learn

Relationships

Relationships metadata is not available for this permission mapping.

View resource documentation

Graph Methods

Delegated access App-only access
No Learn or OpenAPI mapping available

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.

No Learn or OpenAPI mapping available

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.

No Microsoft Learn PowerShell mapping available

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 docs
No Microsoft Learn PowerShell mapping available

Microsoft 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 docs

Code Examples

C# / .NET SDK
using Azure.Identity;
using Microsoft.Graph;

var scopes = new[] { "UserTimelineActivity.Write.CreatedByApp" };
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/usertimelineactivity")
    .GetAsync();
JavaScript
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(["UserTimelineActivity.Write.CreatedByApp"]);
const client = Client.init({
  authProvider: (done) => done(null, token.token)
});

const response = await client.api("/usertimelineactivity").get();
PowerShell
Connect-MgGraph -Scopes "UserTimelineActivity.Write.CreatedByApp"
Invoke-MgGraphRequest -Method GET -Uri "https://graph.microsoft.com/v1.0/usertimelineactivity"
Python
from azure.identity import InteractiveBrowserCredential
import requests

credential = InteractiveBrowserCredential(
    client_id="YOUR_CLIENT_ID",
    tenant_id="YOUR_TENANT_ID"
)

token = credential.get_token("UserTimelineActivity.Write.CreatedByApp")
response = requests.get(
    "https://graph.microsoft.com/v1.0/usertimelineactivity",
    headers={"Authorization": f"Bearer {token.token}"}
)

print(response.json())

App Registration

1

Navigate to Azure Portal

Go to App registrations in Microsoft Entra admin center

2

Add API Permission

Select your app → API permissions → Add a permission → Microsoft Graph

3

Select Permission Type

Choose Delegated permissions and search for UserTimelineActivity.Write.CreatedByApp

4

Grant Admin Consent

Users can consent to this permission during sign-in.

Frequently asked questions

What is the UserTimelineActivity.Write.CreatedByApp Microsoft Graph permission?

UserTimelineActivity.Write.CreatedByApp is a delegated permission in the Microsoft Graph API, grouped under the UserTimelineActivity category. Allows the app to report the signed-in user's app activity information to Microsoft Timeline. It grants write access to resources. Users can consent to this permission during sign-in. It is mapped to the Microsoft Graph usertimelineactivity resource type.

Is UserTimelineActivity.Write.CreatedByApp an application or a delegated permission?

UserTimelineActivity.Write.CreatedByApp is a delegated permission only. It grants access on behalf of a signed-in user and cannot be used for app-only access.

Does UserTimelineActivity.Write.CreatedByApp require admin consent?

Users can consent to this permission during sign-in.

What is the permission ID (GUID) for UserTimelineActivity.Write.CreatedByApp?

For UserTimelineActivity.Write.CreatedByApp, the delegated (OAuth2 scope) ID is 367492fc-594d-4972-a9b5-0d58c622c91c. These are the real Microsoft Graph identifiers and can be used directly in an app registration manifest.