我无法通过逻辑应用连接到 dataverse API - 错误:“用户不是组织的成员。”
我已在创客门户中成功创建了自定义 Dataverse 连接器,注册了我的逻辑应用程序,使用客户端 ID 和 Secret 设置 Oauth 并授予 Dataverse user_impression 权限,但在运行到 API 的 HTTP 连接器时,我不断收到相同的错误:
"statusCode": 403,
"headers": {
"x-ms-service-request-id": "3a71f33b-3a87-4872-8e78-dcce7cf5c2e7,8c66ea1c-72cd-42f3-a3a2-ca8405a27974",
"Set-Cookie": "ARRAffinity=550d2c7e1d29b87d71abd7befbfce92cae8b7575787ae5948b07c246c1598307; domain=orgbdaef3f8.crm3.dynamics.com; path=/; secure; HttpOnly,ReqClientId=d3014d84-a8ca-4b3e-ab63-9ebe993dddf6; expires=Wed, 16-Mar-2072 14:03:54 GMT; path=/; secure; HttpOnly,ARRAffinity=550d2c7e1d29b87d71abd7befbfce92cae8b7575787ae5948b07c246c1598307; domain=orgbdaef3f8.crm3.dynamics.com; path=/; secure; HttpOnly",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"REQ_ID": "8c66ea1c-72cd-42f3-a3a2-ca8405a27974",
"AuthActivityId": "ea493868-8543-49d4-99d6-9f76c968fedb",
"X-Source": "12125111998148129792281252112708712621544171224401241651522061293833167237131240235,12125111998148129792281252112708712621544171224401241651522061293833167237131240235",
"Public": "OPTIONS,GET,HEAD,POST",
"Date": "Wed, 16 Mar 2022 14:03:53 GMT",
"Content-Length": "89",
"Allow": "OPTIONS,GET,HEAD,POST",
"Content-Type": "application/json"
},
"body": {
"error": {
"code": "0x80072560",
"message": "The user is not a member of the organization."
}
}
}
我已经查看了我能找到的每一篇文章,并遵循了所有有关此问题的 Microsoft 指南,但仍然无法弄清楚。我使用完全相同的 Oauth 安全方法连接到 Graph API 没有任何问题。
有人有任何建议或需要更多信息吗?
提前致谢。
I have successfully created a custom Dataverse connector in the maker portal, registered my logic app, setup Oauth with a client ID and Secret and granted the Dataverse user_impression permissions but I keep getting the same error when running the HTTP connector to the API:
"statusCode": 403,
"headers": {
"x-ms-service-request-id": "3a71f33b-3a87-4872-8e78-dcce7cf5c2e7,8c66ea1c-72cd-42f3-a3a2-ca8405a27974",
"Set-Cookie": "ARRAffinity=550d2c7e1d29b87d71abd7befbfce92cae8b7575787ae5948b07c246c1598307; domain=orgbdaef3f8.crm3.dynamics.com; path=/; secure; HttpOnly,ReqClientId=d3014d84-a8ca-4b3e-ab63-9ebe993dddf6; expires=Wed, 16-Mar-2072 14:03:54 GMT; path=/; secure; HttpOnly,ARRAffinity=550d2c7e1d29b87d71abd7befbfce92cae8b7575787ae5948b07c246c1598307; domain=orgbdaef3f8.crm3.dynamics.com; path=/; secure; HttpOnly",
"Strict-Transport-Security": "max-age=31536000; includeSubDomains",
"REQ_ID": "8c66ea1c-72cd-42f3-a3a2-ca8405a27974",
"AuthActivityId": "ea493868-8543-49d4-99d6-9f76c968fedb",
"X-Source": "12125111998148129792281252112708712621544171224401241651522061293833167237131240235,12125111998148129792281252112708712621544171224401241651522061293833167237131240235",
"Public": "OPTIONS,GET,HEAD,POST",
"Date": "Wed, 16 Mar 2022 14:03:53 GMT",
"Content-Length": "89",
"Allow": "OPTIONS,GET,HEAD,POST",
"Content-Type": "application/json"
},
"body": {
"error": {
"code": "0x80072560",
"message": "The user is not a member of the organization."
}
}
}
I have looked at every post I can find and followed all of the Microsoft guides on this and still can't figure it out. I have no issues connecting to the Graph API using the exact same Oauth security methodology.
Anyone have any suggestions or need more information?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
想通了... * 捂脸 * 您必须在 Dataverse 环境管理区域 - 设置 - 应用程序用户中添加应用程序用户。您添加一个新的应用程序用户并输入 Azure 客户端应用程序 ID,如果您需要应用程序具有读/写访问权限,请选择服务编写者安全角色,然后 * BAM ! *
有用!希望这篇文章能够帮助其他遇到此连接问题的人!
Figured it out... * facepalm * you have to add an application user in your Dataverse environment admin area - Settings - Application users. You add a new app user and enter the Azure Client App ID, choose Service Writer security role if you need the app to have read/write access and * BAM ! *
It works! Hopefully this post will help someone else struggling with this connection issue!