2013工作流程BreakRoleInheritance无法正确应用(工作) [英] 2013 Workflow BreakRoleInheritance is not applying(working) properly

查看:101
本文介绍了2013工作流程BreakRoleInheritance无法正确应用(工作)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • 我已经使用以下方法创建了工作流(平台类型:SharePoint 2013工作流) SharePoint Designer 2013.
  • 在在此工作流程中,我必须更改将在其上运行该工作流程的项目的项目级别权限
  • 该项目是所有站点成员都可以访问,但事实并非如此,因为我试图使其只能由该项目的创建者及其管理员来进行编辑.
  • 打破角色继承:-[%Workflow Context:Current网站URL%]/_ api/web/lists/getbytitle('[[%Workflow Context:List Name%]')/items('[%Current Item:ID%]')/breakroleinheritance(copyroleassignments = false, clearsubscopes = true)
    • 使用POST方法使用http网络服务调用了此操作
    • 随同提供了请求标头摘要请求标题中的接受和内容类型
      • I have created workflow (Platform Type: SharePoint 2013 workflow) using SharePoint designer 2013.
      • In this workflow I had to change the item level permissions for the item on which this workflow would be running
      • And also need to change the item level permissions on the workflow task created through it.
      • Prior to this August the workflow was running absolutely fine but suddenly the break role inheritance just stopped working and the workflow didn't work as expected.
      • The item is accessible to all site members but this should not be the case as I tried to make it editable only by the creator of that item and his/her Manager.
      • Also, the tasks are being assigned to a specific group say approver group so to make the task assigned to be editable by only approver group members I had again used the break role inheritance to achieve this
      • The workflow actions are as follows:
        • To break the role inheritance: - [%Workflow Context:Current Site URL%]/_api/web/lists/getbytitle('[%Workflow Context:List Name%]')/items('[%Current Item:ID%]')/breakroleinheritance(copyroleassignments=false, clearsubscopes=true)
          • called this using http web services call action using POST method
          • supplied the request header digest along with Accept and Content-Type in the Request Header
            • 在此,使用http GET方法获取贡献角色定义ID并存储在ContributeRoleDefId变量中,并使用POST方法进行分配.
            • 所有其他角色均分配了读取的角色定义ID.

            需要发生这种情况的原因以及发生原因解决此问题.

            推荐答案

            重新发布工作流程,检查其是否有效.
            re-publish the workflow, check if it works or not.


            这篇关于2013工作流程BreakRoleInheritance无法正确应用(工作)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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