通过 SharePoint Web 服务在文件夹中添加权限

发布于 2024-08-04 01:25:17 字数 183 浏览 2 评论 0原文

是否可以使用 Web 服务添加或更新 WSS 3.0 中文件夹或子文件夹的权限?

现在,我在列表(文档库)内创建了文件夹,并且权限继承自父级,但我需要在列表内的文件夹中添加新权限。

/_vti_bin/permissions.asmx 不允许在文件夹级别添加权限。

我该怎么办?

谢谢,

Is it possible to add or update permission in folder or sub-folder in WSS 3.0 with Web Services?

Now, I created the folder inside list(document library) and the permission inherit from parent but I need to add new permission in folder inside list.

The /_vti_bin/permissions.asmx not allow to add permission in folder level.

How should I do?

Thanks,

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

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

发布评论

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

评论(3

仅此而已 2024-08-11 01:25:17

权限 Web 服务的 AddPermissions 方法只能用于向站点或列表添加权限,而不能用于列表内的文件夹。为了更清楚地了解,请查看有关 Permissions.AddPermissions 网络方法。

The AddPermissions method of the Permissions Web Service can only be used to add Permissions to a Site or a List and NOT for the folder inside a List. For more clarity check the Microsoft documentation on Permissions.AddPermissions Web Method.

天涯沦落人 2024-08-11 01:25:17

是的,只需转到文件夹上下文菜单中的管理权限即可。然后在管理权限页面上选择编辑权限,它将中断继承,然后您可以向文件夹添加/删除组。

Yes, just go to the Manage Permissions in the Folder's context menu. Then on the manage permissions page select Edit Permissions, it will break the inheritance, then you can add / remove groups to the folder.

贪恋 2024-08-11 01:25:17

也许您对以下信息有了解

public void AddPermission // 您可以使用它在网站中添加权限 我认为您可以在共享点上使用它,但我不确定

字符串对象名,
字符串对象类型,
字符串权限标识符,
字符串权限类型,
int 权限掩码

maybe you have something on the following information

public void AddPermission // you can use this for adding permissions in a web site i think you can use it on a sharepoint to but i dont know it for sure
(
string objectName,
string objectType,
string permissionIdentifier,
string permissionType,
int permissionMask
)

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