Amandeep Singh
Amandeep Singh

Reputation: 1431

Get activities of user based on user id

I am looking to fetch activities of user based on their user id. I can see that there is a Get user activities API to get my activities but is there any way to get activity of other users? Given the fact that i have admin account and i can assign permissions.

Upvotes: 0

Views: 387

Answers (1)

user2250152
user2250152

Reputation: 20788

To get the activity of other users you can use this API

GET https://graph.microsoft.com/v1.0/users/{id}/activities

It requires UserActivity.ReadWrite.CreatedByApp permission.

Upvotes: 1

Related Questions