SharePoint2007Provider::GetUserLoginFromEmail

This procedure of the Users and Groups service returns one or more user names based on the specified e-mail address.

Arguments

Input Arguments Required Description

<target>

Yes

The URL of the Windows SharePoint Services administration site.

<siteGUID>

Yes

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

<subSiteGUID>

Yes

The GUID of the sub site.

<Users>

Yes

The e-mail address of one or more users.

<user>

No

The user node.

<email>

Yes

The email of the user.

Output Arguments Description

<user/@displayName>

The display name of the user.

<user/@login>

The login name of the user.

<user/@email>

The e-mail address of the user.

Remarks

This procedure does not need rollback.

Sample Code

Example XML Request

<request> 
  <data> 
    <target>https://spserver:8181</target> 
    <siteGUID>3F2504E0-4F89-11D3-9A0C-0305E82C3301</userDN> 
    <subSiteGUID>3F2504E0-4F89-11D3-9A0C-0305E82C4284</subSiteGUID> 
    <users> 
      <user email="fabrikam\administrator"/> 
    </users> 
  </data> 
  <procedure> 
    <execute namespace="Sharepoint2007Provider" procedure="GetUserLoginFromEmail" impersonate="1" > 
      <before source="data" destination="executeData" mode="merge"/> 
      <after source="executeData" destination="data" mode="merge"/> 
    </execute> 
  </procedure> 
</request>

Example XML Response

<response> 
  <data> 
    <users> 
      <user login="FABRIKAM\administrator" email="Administrator@Fabrikam.Com" displayName="Administrator"/> 
    </users> 
  </data> 
</response>

Applies To

SharePoint 2007 Provider for:

  • Hosted Messaging and Collaboration version 4.5

  • Hosted Messaging and Collaboration version 4.0