3.1.4.39 RemoveUserFromSite

The RemoveUserFromSite operation is used to remove the specified user from the current site collection.

 <wsdl:operation name="RemoveUserFromSite">
     <wsdl:input message="tns:RemoveUserFromSiteSoapIn" />
     <wsdl:output message="tns:RemoveUserFromSiteSoapOut" />
 </wsdl:operation>

The protocol client sends a RemoveUserFromSiteSoapIn request message (section 3.1.4.39.1.1), and the protocol server responds with a RemoveUserFromSiteSoapOut response message (section 3.1.4.39.1.2) in the following sequence:

  1. If the user with the specified login name was never added to the site collection, the server MUST return a SOAP fault with the error code 0x80004005.

  2. If the specified login name is invalid, the server MUST return a SOAP fault with the error code 0x81020054.

  3. Otherwise, the server MUST remove the user from the site collection<20> and from all groups and role definitions assigned to this site collection, and MUST respond with a RemoveUserFromSiteSoapOut response message.