Share via


SharePoint Provider::GetUserInfo

The GetUserInfo method of the Users and Groups service returns information about a collection of one or more users based on the specified user names.

Arguments

Input Arguments Required Description

<target>

Yes

SharePoint site.

<users>

Yes

An array of information about the users in the format shown below .

Remarks

No remarks.

Sample Code

Comments

An array of user info in the format shown below.

Example XML Request

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

Example XML Response

<executeData> 
    <target>https://raven003/sites/test</target> 
 
    <Users> 
 
        <User ID="9" Sid="S-1-5-21-1177238915-507921405-1343024091-10633" 
 
            Name="TestGroupGuy" 
 
            LoginName="RAVEN00\testgroupguy" Email="TestGroupGuy@Fabrikam.com"  
 
            Notes="" IsSiteAdmin="False" 
 
            IsDomainGroup="False" /> 
 
    </Users> 
 
</executeData> 

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::UpdateUserInfo