我无法通过逻辑应用连接到 dataverse API - 错误:“用户不是组织的成员。”

发布于 2025-01-14 18:39:32 字数 1709 浏览 5 评论 0原文

我已在创客门户中成功创建了自定义 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:

enter image description here

 "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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情仇皆在手 2025-01-21 18:39:32

想通了... * 捂脸 * 您必须在 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!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文