ALM Site Administration API Type Library
GetAllUsers Method
Description
Returns all users and their properties.
Syntax
Visual Basic
Public Function GetAllUsers() As String
Return Type

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

Return Value Details
The properties of the GetAllUsers XML return string:

  • USER_ID    -    The new user ID number.
  • USER_NAME    -     The user name.
  • ACC_IS_ACTIVE    -    For internal use.
  • FULL_NAME    -    The full name of the user.
  • EMAIL    -    The email of the user.
  • USER_PASSWORD    -    The encryption of the user password.
  • DESCRIPTION    -    The description of the user.
  • PHONE_NUMBER    -   The phone number of the user.
  • LAST_UPDATE     -    For internal use.
  • US_DOM_AUTH    -    Domain name for use with LDAP authorization.
  • US_REPORT_ROLE    -  For internal use.
Return Value Example
<?xml version="1.0"?>
<GetAllUsers>
    <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>
    <TDXItem>
            <USER_ID>461</USER_ID>
            <USER_NAME>new user 2</USER_NAME>
            <ACC_IS_ACTIVE>Y</ACC_IS_ACTIVE>
            <FULL_NAME>New User</FULL_NAME>
            <EMAIL>new@user.com</EMAIL>
            <USER_PASSWORD>455290</USER_PASSWORD>
            <DESCRIPTION>This is new user</DESCRIPTION>
            <PHONE_NUMBER>123456789</PHONE_NUMBER>
            <LAST_UPDATE>2007-07-01 14:28:43</LAST_UPDATE>
            <US_DOM_AUTH></US_DOM_AUTH>
            <US_REPORT_ROLE>0</US_REPORT_ROLE>
    </TDXItem>
</GetAllUsers>
Example
Private Sub GetAllUsers()

'The following Visual Basic example gets all the users
' and their properties.
    Dim sReply As String
On Error GoTo err
    sReply = m_SAClient.GetAllUsers
    MsgBox sReply
    Exit Sub

err:
    MsgBox "Program failed:" + err.Description
End Sub
See Also