How can I set permissions for a SharePoint group using _vti_bin/permissions.asmx?

  • 20 July 2018
  • 3 replies
  • 43 views

Badge +2

Hi all,

I created a SharePoint group o a site using Nintex Workflow and a Call webservice action using

_vti_bin/usergroup.asmx and AddGroup.

When I open the site and go to People and Groups I can see the group.

But when I go to Site Permissions the group is not listed here, because it has not assigned any permissions yet.

So I woul like to assign Contribute permissions to the group to appear in the site permissions as usabe permission group. I added an Call webservice action and selected the _vti_bin/permissions.asmx service extention to the URL:

But I have no idea what to enter in the fields marked yello above.

The name of the group on the site is "1234 NDA Members" and it should get contribute permissions on that site.

Can somebody please help me out with the configuration?

Thank you!
Harald


3 replies

Badge +16

try this:

roleName = Contribute

groupName = group name

Badge +2

I found the solution meanwhile myself:

1) It is done by calling the web service: /_vti_bin/permissions.asmx

2) Use AddPermissionCollection as Web method

3) The objectName is the URL of the site where the group has been created.

objectType can be List or Web. As we are dealing with a Site it needs to be Web.
permissionInfoXML must be a XML snipped of the following format:
 
<Permissions>
<Users>
</Users>
<Groups>
<Group GroupName="Project Number NDA Signed Members" PermissionMask="1011028719" />
</Groups>
</Permissions>
 
 
Project Number NDA Signed Members above is the name of the group.
The Permission Mask 1011028719 is a refernce to the Contribute permission collection.

Badge +2

Hi Cassy,

thank you for your reply.

I posted the solution here as well that I found meanwhile. But it is always good to have alternatives.

Reply