如何使用设计器工作流授予贡献权限 [英] How to grant contribute permission using designer workflow

查看:64
本文介绍了如何使用设计器工作流授予贡献权限的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用网站模板在sharepoint上创建团队子网站,在设计人员工作流程中使用Http服务调用,我的网站创建成功,但是在创建网站时我想向用户提供贡献权限。请帮助 

I create team subsite on sharepoint online using site template with Http service call in designer workflow, my site is created successfully, but with site creation i want to give contribute permission to user. Please help 

提前致谢。

推荐答案

< span style ="font:inherit; margin:0px; padding:0px; border:0px; vertical-align:baseline; color:#1f497d">

< span style ="font:inherit; margin:0px; padding:0px; border:0px; vertical-align:baseline; color:#1f497d">没有OOB操作来实现您的目的。您需要部署自定义SPD活动。

要在新创建的子网站上授予用户权限,您可以使用"/ _api / web / roleassignments / addroleassignment(principalid =< principal ID> ;,
roledefid =<
  role
definition ID>)"。


To grant user permissions on the newly created subsite, you could use "/_api/web/roleassignments/addroleassignment(principalid= <principal ID>, roledefid=< role definition ID >)".


更多i有关此休息Api的信息,请参阅以下文章:


http://www.jrjlee.com/2014/01/custom-workflow-activity-for-granting.html


最好 问候,


Allen Allen


这篇关于如何使用设计器工作流授予贡献权限的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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