Azure:可以将委托的API权限分配给托管身份吗?

发布于 2025-02-01 23:45:02 字数 587 浏览 1 评论 0原文

我正在测试Azure中的托管身份。我的情况是,我需要代表系统或用户分配的MID访问Microsoft图。基于auf docs i 能够配置它们中的每一个并分配Graph API权限。我看到它们都是应用程序权限(MID ->设置菜单 - > Security-permissions)。我期望这是针对系统分配的中间的,但没有用户分配的中间。我想让它访问API槽的原因是某些图形API权限受到保护,并且无法在应用程序上下文中访问,例如ChanneMessage.Ald.All(读取团队频道消息)。

因此,我的问题基本上是:是否有人知道是否有一种方法可以在具有托管身份的非应用上下文中访问受保护的图形API。如果您需要特定的详细信息,请让我知道。

I was testing managed identities in Azure. My scenario is I need to access the Microsoft Graph on behalf of either a system- or user-assigned MID. On the basis auf the docs I
was able to configure each one of them and assign Graph API permissions. I see that they're all application permissions (MID -> Settings menu -> Security -> Permissions). I expected this for the system-assigned MID but not for the user-assigned MID. The reason I want to have it access the API trough the delegated type is that some Graph API permissions are protected and cannot be accesses in an application context, such as ChannelMessage.Read.All (read Teams channel messages).

So my question is basically: Does anybody know if there's a way to access protected Graph API's in a non-application context with a managed identity. Please let me know if you need specific details.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

落叶缤纷 2025-02-08 23:45:02

据我所知,这是不可能的。
托管身份只能利用应用程序权限。
从理论上讲,您可以将授权的许可分配给其服务原则,但您将无法作为具有托管身份的用户登录。
“用户分配”托管身份只是单独的Azure资源,而不是成为另一个资源的一部分。它们与Azure AD中的系统分配没有什么不同,两者都是服务主体。

As far as I know, it is not possible.
Managed Identities can only utilize application permissions.
While in theory you could assign a delegated permission to its service principal, you would not be able to sign in as a user with the Managed Identity.
"User-assigned" Managed Identities are just a separate Azure resource instead of being part of another resource. They are not different from system-assigned in Azure AD, both are service principals.

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