使用REST API的SPD 2013工作流程使用UseUniquePermissions参数设置为'true'来创建网站 [英] SPD 2013 workflow using REST API to create site with UseUniquePermissions parameter set to 'true'

查看:55
本文介绍了使用REST API的SPD 2013工作流程使用UseUniquePermissions参数设置为'true'来创建网站的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

解决方案

根据我的测试结果,如果将UseUniquePermissions设置为true,则工作流创建的子网站将具有唯一权限


工作流创建的子网站:


此处是有关通过Designer Workflow使用Rest Api创建网站并将UseUniquePermissions(字符串)设置为的示例是的.

要授予用户对该新创建的子网站的访问权限,我们可以使用"/_api/web /roleassignments/addroleassignment(principalid =< principal ID> ;, roledefid =< 角色定义ID>)".

有关此Rest Api的详细信息,请参阅以下文章:

最好的问候,

Linda(张)


In a SPD 2013 workflow, how is the 'UseUniquePermissions' parameter configured when it's set to 'true' in order to create unique permissions for a site? how do you declare and grant user(s) to have a specific permission?

I can't find any documentation/examples for configuring that parameter to set unique permissions (UseUniquePermissions). All examples show the parameter set to false for inheriting permissions.

Any suggestions?

解决方案

Hi DavJaq,

Per my testing results, the subsite created by workflow will have unique permissions if we set UseUniquePermissions to true.


The subsite created by the Workflow:


Here is an example about creating site using Rest Api via Designer Workflow and set UseUniquePermissions (string) to true.

https://jaredmatfess.com/2016/05/04/creating-subsites-using-rest-api-from-sharepoint-designer-workflow/

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

For more information about this Rest Api, refer to the following article:

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

Best regards,

Linda Zhang


这篇关于使用REST API的SPD 2013工作流程使用UseUniquePermissions参数设置为'true'来创建网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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