如何使用Designer工作流2013 REST API实现中断角色继承并为文档分配权限? [英] How to achieve Break role inheritance and assign permissions to document with Designer workflow 2013 REST api?

查看:171
本文介绍了如何使用Designer工作流2013 REST API实现中断角色继承并为文档分配权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我必须在更改批准状态时更改文档的权限.如果文档已通过"Designer Workflow 2013&REST API"批准,则必须将新用户组添加到当前文档.

I''ve to change the permissions of a document on change of approval status. I''ve to add the new user group to current document if the document has been approved with "Designer workflow 2013 & REST API".

推荐答案

I don't think you can do this with a 2013 workflow.  But you can easily do it using a 2010 workflow built with SPD 2013.  One of the differences between 2010 and 2013 workflows in 2013 is that 2010 has an action for changing permissions but 2013 workflows don't.




使用此REST端点可以破坏对该项目的权限

/_api/web/lists/getByTitle(``此处为您的标题标题'')/items(``此处为您的项目ID'')/breakroleinheritance(copyRoleAssignments = true,clearSubscopes = true)




Use this REST endpoint to break permissions on the item

/_api/web/lists/getByTitle(''YOUR LIST TITLE HERE'')/items(''YOUR ITEM ID HERE'')/breakroleinheritance(copyRoleAssignments=true,clearSubscopes=true)


这篇关于如何使用Designer工作流2013 REST API实现中断角色继承并为文档分配权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆