c# - MIP SDK - MIP SDK 中有哪些可用的用户权限?
问题描述
我正在尝试将“PRINT”UserRight 应用于 ProtectionDescriptor,但它没有打开 PDF 文件内容。尝试查找 MIP SDK 的用户权限列表。我尝试了“所有者”,它有效。但我不想赋予“所有者”权利。任何帮助都会很棒。
var newRights = new List<UserRights>();
foreach (UserSet userset in options.userSet)
{
newRights.Add(new UserRights(new List<string> { userset.Users }, new List<string> { "PRINT" }));
};
ProtectionDescriptor protectionDescriptor = new ProtectionDescriptor(newRights);
解决方案
您还必须包括 VIEW。VIEW 是打开内容所需的基本权限。
完整的权利在这里:https ://docs.microsoft.com/en-us/azure/information-protection/configure-usage-rights
推荐阅读
- css - 如何在 windows 和 mac 上一致地重叠包含文本元素的 svg
- x86 - 程序正在执行条件跳转,我不知道为什么
- bash - 循环遍历文件的每一行并对字段求和
- ruby-on-rails - Ruby 2.6.0 无效的真实性令牌
- python - aws cognito list-users 函数仅返回 60 个用户
- vim-plugin - clang 和 gcc linter 检查语法错误
- java - 批量插入成功后更新 Kafka 提交偏移量
- c# - 如果数据库中不存在则插入,如果数据库中存在则不执行任何操作,如果列表中不存在则删除
- c++ - C++ 名称后跟 '::' 必须是类或命名空间名称
- java - 使用 commitAsync 提交偏移量时出现 Kafka 异常