Share via


SharePoint Provider::RemoveUsersFromGroup

The RemoveUsersFromGroup method of the Users and Groups service removes the users with the specified user names from the cross-site group. This call implements rollback.

Arguments

Input Arguments Required Description

<target>

Yes

SharePoint site containing the group that the users are to be removed from.

<groupName>

Yes

A string that contains the name of the cross-site group.

<Users>

Yes

A collection of user names (DOMAIN\User_Alias)

Remarks

No remarks.

Sample Code

Example XML Request

<request> 
    <procedure> 
 
        <execute namespace="WSS Provider" procedure="RemoveUsersFromGroup" 
 
                   impersonate="1"> 
 
            <executeData> 
 
                <target>https://raven003/sites/test</target> 
 
                <groupName>TestGroup</groupName> 
 
                <Users> 
 
                    <User LoginName="raven00\TestGroupGuy" /> 
 
                </Users> 
 
            </executeData> 
 
        </execute> 
 
    </procedure> 
 
</request> 

Example XML Response

No example XML response.

Typical C# Usage

No typical C# usage.

Applies To

Windows SharePoint Services Provider API for

  • Hosted Messaging and Collaboration version 3.5

  • Hosted Messaging and Collaboration version 3.0

  • Windows-based Hosting version 4.5

  • Windows-based Hosting version 4.0

  • Windows-based Hosting version 3.5

  • Windows-based Hosting for Applications version 1.0

See also

Tasks

SharePoint Provider::AddUsersToGroup