Microsoft Graph REST API Change Notifications List Subscriptions not working

Dave Larson 21 Reputation points
2022-06-09T07:36:54.117+00:00

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.

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
10,586 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sheena-MSFT 1,721 Reputation points
    2022-06-09T08:37:23.957+00:00

    Hi @Dave Larson ,

    I would recommend you to raise a support ticket by visiting the Azure Admin Center or visit the Microsoft 365 Admin Center and use the Support menu to Open a service request.

    For now as a work around you can do GET Subscription/ID to get the subscription. ( you will get the ID in response when you create the subscription you can store this ID and use it later when you want)

    Along with empty array you will receive odata.NextLink , you need to traverse each page till the end of pagination to find all the active subscription.

    If the answer is helpful, please click Accept Answer and kindly upvote it. If you have any further questions about this answer, please click Comment.

    0 comments No comments