<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Set Permissions Archives : Binary Bits</title>
	<atom:link href="https://blog.binarybits.net/tag/set-permissions/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.binarybits.net/tag/set-permissions/</link>
	<description>Bits &#38; Pieces - A blog by Kannan Balasubramanian</description>
	<lastBuildDate>Fri, 05 May 2017 06:21:49 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>Set permissions for a SharePoint list item using 2013 Workflow</title>
		<link>https://blog.binarybits.net/set-permissions-sharepoint-list-item-using-2013-workflow/</link>
					<comments>https://blog.binarybits.net/set-permissions-sharepoint-list-item-using-2013-workflow/#respond</comments>
		
		<dc:creator><![CDATA[Kannan]]></dc:creator>
		<pubDate>Fri, 05 May 2017 06:14:12 +0000</pubDate>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[2013 Workflow]]></category>
		<category><![CDATA[Set Permissions]]></category>
		<category><![CDATA[SharePoint 2013]]></category>
		<guid isPermaLink="false">https://blog.binarybits.net/?p=831</guid>

					<description><![CDATA[<p>Following are the steps to be implemented in a 2013 workflow to set permissions for a SharePoint list item. This particular method set the permissions for all users in a group with a particular role permission using REST Calls 1. Build Header Dictionary and set to a variable Name: Accept Type: String Value: application/json;odata=verbose Name: [&#8230;]</p>
<p>The post <a href="https://blog.binarybits.net/set-permissions-sharepoint-list-item-using-2013-workflow/">Set permissions for a SharePoint list item using 2013 Workflow</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Following are the steps to be implemented in a 2013 workflow to set permissions for a SharePoint list item.<br />
This particular method set the permissions for all users in a group with a particular role permission using REST Calls</p>
<p>1. Build Header Dictionary and set to a variable</p>
<blockquote><p>Name: Accept<br />
Type: String<br />
Value: application/json;odata=verbose</p>
<p>Name: Content-Type<br />
Type: String<br />
Value: application/json;odata=verbose</p></blockquote>
<p>1. Set &#8220;Group ID URL&#8221; to a variable</p>
<pre class="wrap:true lang:xhtml decode:true ">[%Workflow Context:Current Site URL%]_api/Web/SiteGroups/GetByName('Group Name')?$Select=id</pre>
<p>2. Set &#8220;Role ID URL&#8221; to a variable</p>
<pre class="wrap:true lang:xhtml decode:true ">
[%Workflow Context:Current Site URL%]_api/Web/RoleDefinitions/GetByName('Role Name')?$Select=id
</pre>
<p>3. Set &#8220;Break Role Inheritance URL&#8221; to a variable</p>
<pre class="wrap:true lang:xhtml decode:true ">
[%Workflow Context:Current Site URL%]_api/Web/Lists/GetByTitle('Library Name')/items([%Current Item:ID%])/BreakRoleInheritance(copyRoleAssignments=false, clearSubacopes=true)
</pre>
<p>4. Create Response Variables for &#8220;Group ID Response&#8221;, &#8220;Role ID Response&#8221;, &#8220;Response Headers&#8221; &amp; &#8220;Response Code&#8221; with data type as Dictionary</p>
<p>5. Make GET REST call using Call Action to &#8220;Group ID URL&#8221; and assign output to above created variables in step 4</p>
<p>6. Use Get Action &#8216;d/Id&#8217; from above &#8220;Group ID Response&#8221; variable and set it to a new variable &#8220;GroupID&#8221;</p>
<p>7. Make GET REST call using Call Action to &#8220;Role ID URL&#8221; and assign output to above created variables in step 4</p>
<p>8. Use Get Action &#8216;d/Id&#8217; from above &#8220;Role ID Response&#8221; variable and set it to a new variable &#8220;RoleID&#8221;</p>
<p>9. Make POST REST call using Call Action to &#8220;Break Role Inheritance URL&#8221; and optionally assign output to above created variables in step 4</p>
<p>10. Set &#8220;Set Role URL&#8221; to a variable</p>
<pre class="wrap:true lang:xhtml decode:true ">
[%Workflow Context:Current Site URL%]_api/Web/Lists/GetByTitle('Library Name')/items([%Current Item:ID%])/RoleAssignments/AddRoleAssignment(principalId=[%Variable:GroupID%],roleDefId=[%Variable:RoleID%])
</pre>
<blockquote><p><strong>Add Role:</strong></p>
<pre class="wrap:true lang:xhtml decode:true ">
 AddRoleAssignment(principalId=[%Variable:GroupID%],roleDefId=[%Variable:RoleID%])
</pre>
<p><strong>Remove Role:</strong></p>
<pre class="wrap:true lang:xhtml decode:true ">
RemoveRoleAssignment(principalId=[%Variable:GroupID%],roleDefId=[%Variable:RoleID%])
</pre>
</blockquote>
<p>11. Make POST REST call using Call Action to &#8220;Set Role URL&#8221; and optionally assign output to above created variables in step 4</p>
<p>Reference URL: <a href="https://msdn.microsoft.com/en-us/library/office/dn531432.aspx" target="_blank" rel="noopener noreferrer">https://msdn.microsoft.com/en-us/library/office/dn531432.aspx</a></p>
<p>The post <a href="https://blog.binarybits.net/set-permissions-sharepoint-list-item-using-2013-workflow/">Set permissions for a SharePoint list item using 2013 Workflow</a> appeared first on <a href="https://blog.binarybits.net">Binary Bits</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.binarybits.net/set-permissions-sharepoint-list-item-using-2013-workflow/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk

Served from: blog.binarybits.net @ 2026-04-23 06:41:37 by W3 Total Cache
-->