cancel
Showing results for 
Search instead for 
Did you mean: 
kmccool
Nintex Newbie

Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

I have a need to change permissions on project sites once the site is set to archived. Is it possible to change site permissions with a workflow? I see item permissions...

Thanks in advance for your help!

Kassie

Labels: (2)
Reply
18 Replies
Automation Master
Automation Master

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

You can set permissions with web service calls

View solution in original post

Reply
Automation Master
Automation Master

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution
Reply
Nintex Employee
Nintex Employee

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

We do this in our automated site provisioning workflow! We do it across site collections so that we can leverage site templates on different collections.

If you need any examples or help, let us know

Reply
supermankelz
Nintex Newbie

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

I have a requirement to do something similar to this.  My issue is that the sub-site being created by our workflow stores the new site URL in a workflow variable, and I'm trying to use that new URL reference in the URL for the Web Service call so that it's calling the web services associated with the newly created sub-site.  However, I'm unable to select a Web Method in the configuration for AddGroup since the site URL I'm trying to use technically isn't created yet until a user fills out our form and provides a site name for the new site.

How did you get around this, did you have to put the group creation and permissioning in a separate workflow that's called by the site creation workflow?

Thanks!

Reply
Nintex Employee
Nintex Employee

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

I did separate out those steps, but I am using a workflow variable as well to pass along the newly created URL.

What I did was put in a legit URL, so I can select the proper service, and then once set, replace the URL with the variable.

Also, you should be prompted with a dialog box if the URL contains a variable:

This gives you a chance to provide a real example of what the variable could hold.

Hope this helps!

Reply
supermankelz
Nintex Newbie

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

Ok, that's what I had did at first (using legit URL to get the methods and then substitute for the workflow variable) but got some SOAP exception errors when I tried to test the workflow.

Would you suggest a pause or a wait, or is there a way to check that the site creation action has taken place before the call of web service actions are run?

Reply
Nintex Employee
Nintex Employee

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

We added in a pause step to allow the system to create the site. If I remember correctly, we ran into similar issues when the site creation and permission actions were in the same workflow, and that is why we separated them out.

If you are still running into issue after pausing for 5 minutes, separate out the permission steps and put them in another workflow. Then all you need to do is call that workflow and pass over the variables required. So something like this:

Hope this helps!

Reply
supermankelz
Nintex Newbie

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

Looks good, I've added the pause for 5 minutes actions and going through unit testing of that change now to see if we get the same errors as before.  I appreciate the help!

This is how I currently have it set up, have added Commit Pending Changes actions also.

Reply
Nintex Employee
Nintex Employee

Re: Is there a way to set child site permissions with a workflow on the parent site?

Jump to solution

Commit pending changes action should really only be used just before you need to reference some data from something that a workflow updated (check out   for more details). Not sure how the rest of your workflow is designed, but you may not need them.

Also, just a thought, you could move the pause step to just before the Run in parallel action to save steps. Same thing with the commits, since you are only setting workflow variables between the steps.

Let me know how it works out for you!

Hope this helps!

0 Kudos
Reply