简体   繁体   中英

Get notification when user updated on Azure AD using MS Graph

I am trying to get notification when user is updated on MS Azure AD using MS Graph and Web hook.I have tried microsoftgraph/msgraph-training-changenotifications but face following

Status Code: Unauthorized Microsoft.Graph.ServiceException: Code: ExtensionError Message: Operation: Create; Exception: [Status Code: Unauthorized; Reason: ]

I have also explore notifications for changes in user data this code but it is for "Mail.Read" permission and I want to "User.Read" permission.

My case/issue is like Not receiving a request on our MS Graph Webbook for deleting a User in AAD but something different. i need notification on update user on my asp.net core project.

Please help me. I am troubling since last 3 days but not getting proper solution

I was missing to give a permission in Azure AD

User.ReadWrite.All

I have watched this video Change notifications with Microsoft Graph and use this code msgraph-training-changenotifications . Now i got notification from Azure AD在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM