Graph API - We are trying to reset password of office 365 azure ad user, for that it acquires access token from azure ad using client credentials grant flow, in a daemon app\service, but unable to reset password of user. It responds "Insufficient privileges to complete the operation", I have given the following permission to applications.
1)User.ReadWrite.All - Read and write all users full profiles (Application + delegated permission) 2)Directory.AccessAsUser.All - Access directory as the signed-in user (Delegated permission)
My O365 application is "multitenant Web Api" app which has been given an admin consent. The main purpose of my app is to sync users from my Web Application (User details etc.) to Azure AD. My application is able to sync all user profile details except the password.
Can a Daemon service application which has be authorized by the tenant administrator, reset the password of the users in the organization?
Thanks