Out of the box with a Nintex action, setting the permissions at the site level is not possible
Requirement:
I have a Site Request list in the parent site collection.
I have to create a sub-sites with a particular template( such as Wiki) for every site request created in the Site Request List.
Once the sub site is created, I have to set the permission to the new sub-site based on the meta data filled by the requester in the Site Request List.
I have to run a Nintex workflow to create sub-sites, which will be attached on the Site Request List.
Solution:
Instead of expecting a Nintex action for this, you can use the method outlined in this link and the permissions web service method using a Nintex Call Web Service action:
Use Create site action to create a new sub site under the parent site collection as shown below
Use call web service action and call the permissions.asmx web service to add permissions to the Site as shown below
Here,
Parameters
objectName
Type: System.String A string that contains the name of the list or site.
objectType
Type: System.String A string that specifies either List or Web.
permissionsInfoXml
Type: System.Xml.XmlNode An XML fragment in the following format that specifies the permissions to add and that can be passed as a System.Xml.XmlNodeobject:
In the above image, varPermissionXML is an XML input variable which will have the following XML input
If you want the exact PermissionMask number for a specific permission role refer the below xml which I have received from the GetPermissionCollection web method of the same web service.
That’s it you are done.
Subscribe
Get the latest and greatest from me delivered straight to your inbox.