Reading the List subscriptions page
https://learn.microsoft.com/en-us/graph/api/subscription-list?view=graph-rest-1.0&tabs=http
makes it seem like I should be able to get a list of all subscriptions by calling
GET https://graph.microsoft.com/v1.0/subscriptions
I want to get event subscriptions and I am using an Application and have Calendars.Read
The response I get is
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#subscriptions",
"@odata.nextLink": "https://graph.microsoft.com/v1.0/subscriptions?$skiptoken=8r8sF6wDHaAzFnJAdgxsF%252Ba4hVGBzgyoZFT0%252B3yOxiLuzg81VpdLll%252FaY%252FSkl84PS6taLtNMiuK9a0EIPJ8Ota%252B0VRGyGml9dlwzkPHc%253D",
"value": []
}
If I use
https://graph.microsoft.com/v1.0/subscriptions/ef1e1d78-e104-4511-b865-9fc368367d6a
I get what I expect.
{
"@odata.context": "https://graph.microsoft.com/v1.0/$metadata#subscriptions/$entity",
"id": "16d1901c-30ab-47a1-816d-4cbdf72ba5e2",
"resource": "users/c027a5cb-0d46-4d91-a392-aa2bc779d8ce/events",
"applicationId": "be7f92ee-9a20-4953-bffd-54d3ac9dc933",
"changeType": "created,updated,deleted",
"clientState": "TEST002",
"notificationUrl": "https://brothers.ngrok.io/ChangeNotification",
"notificationQueryOptions": null,
"lifecycleNotificationUrl": null,
"expirationDateTime": "2022-06-12T03:09:21.284Z",
"creatorId": "ec741d39-bea3-4ff1-b591-277c539a238f",
"includeResourceData": null,
"latestSupportedTlsVersion": "v1_2",
"encryptionCertificate": null,
"encryptionCertificateId": null,
"notificationUrlAppId": null
}
How can I list all the subscriptions?
Thanks.