SharePoint2007Provider::RemoveUserFromWeb

This procedure removes the specified user from the current site.

Arguments

Input Arguments Description

<target>

The URL of the Windows SharePoint Services administration site.

<siteGUID>

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

<subSiteGUID>

The GUID of sub site.

<userLoginName>

The user name (DOMAIN\User_Alias) to remove.

Remarks

This call does not implement rollback. Use SharePoint2007Provider::RemoveUserFromGroup or SharePoint2007Provider::RemoveUserFromRole instead.

Sample Code

Example XML Request

<request> 
   <procedure> 
      <execute namespace="SharePoint2007Provider" procedure="RemoveUserFromWeb" impersonate="1"> 
         <executeData> 
            <target>https://WSSFE:8080</target> 
            <siteGUID>26adf82c-4a31-4335-90ec-973d6c13d58c</siteGUID> 
            <subSiteGUID>3074ced5-e37f-4069-947b-753f82b7e02d</subSiteGUID> 
            <userLoginName>Fabrikam\SPNSUser</userLoginName> 
         </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::GetUsersFromWeb