如何授予Azure活动目录B2C用户对存储帐户容器的权限?

问题描述 投票:0回答:1

我正在使用Active Directory B2C和Azure的存储帐户。有没有一种方法可以为每个连接的用户授予仅专用容器的所有权,以执行诸如读取,写入,删除和列出文件之类的操作?

我需要一些帮助,最好使用c#sdk达到此要求。

感谢您的进阶

c# azure-functions storage azure-storage-blobs azure-ad-b2c
1个回答
0
投票

您需要将B2C AAD中的用户作为来宾添加到当前的ADD中。

例如,我的B2C用户的电子邮件为[email protected]

我将其添加到当前的ADD中:

enter image description here

enter image description here

然后请转到当前AAD中的存储帐户。选择此:

enter image description here

并且对于数据的操作,用户需要此角色:

enter image description here

请注意,即使我们可以使用powershell来添加RBAC角色,我们仍然需要使用门户网站来添加来宾用户。

© www.soinside.com 2019 - 2024. All rights reserved.