Dynamics 365 - Field Service:范围 'Odata.FullAccess' 不存在

Dynamics 365 - Field Service : The scope 'Odata.FullAccess' does not exist

案例:通过 Common Data Services OData 在 Dynamics 365-Field Service 中进行 CRUD 工单

  1. 我正在尝试访问 Dynamics 365 Field Service 的字段。

我使用 Python, Flask 构建 webapp

  1. 我需要 CRUD 工单:https://docs.microsoft.com/en-us/dynamics365/customer-engagement/web-api/msdyn_workorder?view=dynamics-ce-odata-9

  2. 我正在使用多租户服务器到服务器身份验证机制:https://docs.microsoft.com/en-us/powerapps/developer/common-data-service/use-multi-tenant-server-server-authentication

  3. 我已经在 Azure 上设置了应用程序注册:https://docs.microsoft.com/en-us/azure/active-directory/develop/quickstart-register-app

  4. 我配置了几个权限:

  1. 我使用 Microsoft 提供的代码模板来构建与 Active Directory 和 Dynamics 365 交互的网络应用程序

    https://docs.microsoft.com/en-us/azure/active-directory/develop/scenario-web-app-call-api-overview

错误信息

Login Failure

invalid_scope
    The provided value for the input parameter 'scope' is not valid. 
    The scope 'Odata.FullAccess User.ReadBasic.All offline_access openid profile' 
    does not exist.

你有什么想法吗?

非常感谢您花时间研究这个问题

基于Grant your application rights to access Common Data Service data,您需要select 作为组织用户访问 Dynamics 365

它属于 Dynamics CRM 而不是 Dynamics ERP。

Odata.FullAccess是Dynamics ERP下的权限,对你的场景无效