I am trying to invoke the "GetUserCollectionFromGroup" method of the UserGroup.asmx web service. I am using the "Web Service" function in Nintex Workflow but I am pretty confident that Nintex is not related to the problem.
When I create a SOAP envelope like this:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:m="http://schemas.microsoft.com/sharepoint/soap/directory/">
<soap:Header>
</soap:Header>
<soap:Body>
<m:GetUserCollectionFromGroup>
<m:groupName>Admin</m:groupName>
</m:GetUserCollectionFromGroup>
</soap:Body>
</soap:Envelope>
The appropriate response is returned. Group members and their properties are listed.
When I request the group "Security" however it returns 401 UNAUTHORIZED
.
I am using a service account that has been added to the Site Owners group and I don't understand why some groups would return the list of users & their properties while others will not allow access.
I firmly believe that it is a permissions issue or a group ownership issue but I can't quite narrow down the problem.