1

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

var newRights = new List<UserRights>{
                            new UserRights(
                                new List<string> {
                                    "aip@someaddress.com",
                                },
                                new List<string> {"owner"}
                            ),
                        };
ProtectionDescriptor protectionDescriptor = new ProtectionDescriptor(newRights);
4

2 回答 2

0

好吧,在认真挖掘之后。任何用户的电子邮件值都是“ANYONE”大写。

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

于 2020-07-20T12:53:39.153 回答
0

你在使用MIP SDK吗?

如果是这样,我会仔细检查文档,如果我们错过了,我会添加它。

于 2020-07-21T16:14:36.413 回答