SharePoint2007Provider::RemoveUsersFromGroup

This procedure of the Users and Groups service removes the users with the specified user names from the group. This call implements rollback.

Arguments

Input Arguments Required Description

<target>

Yes

The URL of the Windows SharePoint Services administration site.

<siteGUID>

Yes

The globally unique identifier (GUID) of the Windows SharePoint Services site collection.

<subSiteGUID>

Yes

The GUID of the subsite.

<groupName>

Yes

A string that contains the name of the group.

<users>

Yes

A collection of user names (DOMAIN\User_Alias).

Remarks

No remarks.

Sample Code

Example XML Request

<request> 
   <procedure> 
      <execute namespace="SharePoint2007Provider" procedure="RemoveUsersFromGroup" impersonate="1"> 
         <executeData> 
            <target>https://WSSFE:8080</target> 
            <siteGUID>98cf18a6-aa9c-4ecc-895f-c508bf35dea4</siteGUID> 
            <subSiteGUID>01e7dbf3-d847-44e1-b926-b951905c203e</subSiteGUID> 
            <groupName>SPNSTestGroup</groupName> 
            <users> 
               <user loginName="Fabrikam\Administrator" name="Administrator" email="Administrator@Fabrikam.Com" notes="RemoveUsersFromGroup Test" /> 
            </users> 
         </executeData> 
      </execute> 
   </procedure> 
</request>

Applies To

SharePoint 2007 Provider for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0

See also

Tasks

SharePoint2007Provider::AddUsersToGroup