gpt4 book ai didi

c# - 在 Azure AD MIP SDK 中设置用户权限不允许我添加全局 "AuthenticatedUsers"

转载 作者:行者123 更新时间:2023-12-03 03:59:37 25 4
gpt4 key购买 nike

我们正在使用 Azure MIP SDK 来加密文档。API 非常简单,当您使用模板功能时,示例也很好。但是...我们想自己生成保护描述符。与用户电子邮件配合良好。但在所有文档/示例中,无法找到如何为“所有经过身份验证的用户”定义角色或权限(定义存在于模板中)。任何评论/建议都将受到欢迎。

var newRights = new List<UserRights>{
new UserRights(
new List<string> {
"<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="caaba3ba8ab9a5a7afabaeaeb8afb9b9e4a9a5a7" rel="noreferrer noopener nofollow">[email protected]</a>",
},
new List<string> {"owner"}
),
};
ProtectionDescriptor protectionDescriptor = new ProtectionDescriptor(newRights);

最佳答案

好吧,经过认真的挖掘。任何用户的电子邮件值为“ANYONE”大写。

https://learn.microsoft.com/en-us/previous-versions/windows/desktop/msipc/ipc-user

关于c# - 在 Azure AD MIP SDK 中设置用户权限不允许我添加全局 "AuthenticatedUsers",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62992456/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com