ALM Site Administration API Type Library 12.50 and later
GetUser Method
The user name.
Description
Returns the user properties.
Syntax
Visual Basic
Public Function GetUser( _
   ByVal UserName As String _
) As String
Parameters
UserName
The user name.
Return Type

On success, returns an XML string containing the user properties.

Return Value Details

The properties that can be in the GetUser XML return string:

Return Value Example

<?xml version="1.0"?>
<GetUser>
    <TDXItem>
            <USER_ID>258</USER_ID>
            <USER_NAME>admin</USER_NAME>
            <ACC_IS_ACTIVE>Y</ACC_IS_ACTIVE>
            <FULL_NAME></FULL_NAME>
            <EMAIL></EMAIL>
            <USER_PASSWORD>DEF:2jmj7l5rSw0yVb/vlWAYkK/YBwk=</USER_PASSWORD>
            <DESCRIPTION></DESCRIPTION>
            <PHONE_NUMBER></PHONE_NUMBER>
            <LAST_UPDATE>2007-06-19 17:56:08</LAST_UPDATE>
            <US_DOM_AUTH></US_DOM_AUTH>
            <US_REPORT_ROLE>0</US_REPORT_ROLE>
    </TDXItem>
</GetUser>

Example
Private Sub GetUser()

'The following Visual Basic example gets the properties
' of the user whose name is in the text box.
    Dim sReply As String
    On Error GoTo err

    sReply = m_SAClient.GetUser(Text1.Text)
    MsgBox sReply
    Exit Sub
err:
    MsgBox "Program failed:" + err.Description
End Sub
See Also

SAapi Object  | SAapi Members