cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Which Web Service to use when you need to add an existing group to a sub-site?

Jump to solution

I'm creating a workflow that will create a site.  It will require adding existing groups to these sites as well with defined permissions like Read or Edit.  I created a UDA and used the web service UserGroups.aspx but I can only find a method to Add or create a new group.  Anyone have any ideas?

Labels: (2)
0 Kudos
Reply
2 Replies
Workflow Hero

Re: Which Web Service to use when you need to add an existing group to a sub-site?

Jump to solution

It looks like the UserGroups method of AddGroupToRole will only update the site collection role and not the web or sub site level.

Try Permissions.asmx method AddPermissions

AddPermission("Web_Title", "Web", "Group_Name", "group", 0x00000002 | 0x00000400);

https://msdn.microsoft.com/en-us/library/permissions.permissions.addpermission(v=office.12).aspx

Sorry, I did not test if this works. Just wanted to try and give you a lead.

0 Kudos
Reply
Not applicable

Re: Which Web Service to use when you need to add an existing group to a sub-site?

Jump to solution

Hi Adam, which method you are using? please let us know which method you used from here: https://msdn.microsoft.com/en-us/library/ms774422(v=office.12).aspx  also paste a screenshot of the call web service configuration so we can see the configuration you used. Thanks,

0 Kudos
Reply