Issue
Running the "SAM - Import User Subscriptions" job results in the following error in the syslog:
Unhandled exception for profile : 682ce3251b1ab740ee510d43cd4bcb64 : Error: {
"error": {
"code": "Authorization_RequestDenied",
"message": "Insufficient privileges to complete the operation.",
"innerError": {
"request-id": "d5471515-74a7-4028-a8bc-74abd13c7dee",
"date": "2019-06-27T20:23:05"
}
}
}
Release
Madrid
Cause
The user.read.all, reports.read.all permissions were given as delegated permissions, the API call won't work. You need to explicitly give app permissions, which are not selected by default in the Azure portal.
Resolution
For the latest information on this topic, see Integrating with Microsoft Dynamics 365 and Power Apps.
These screenshots show the permission needed on the Azure portal: