User

The User object represents an agent or supervisor and includes information about the user, such as roles, state, and teams. The User object is structured as follows:

Code Snippet
Copy<User>
    <uri>/finesse/api/User/1001001</uri>
    <roles>
        <role>Agent</role>
        <role>Supervisor</role>
    </roles>
    <loginId>1001001</loginId>
    <loginName>csmith</loginName>
    <state>NOT_READY</state>
    <stateChangeTime>2012-03-01T17:58:21.234Z</stateChangeTime>
    <mediaType>1</mediaType>
    <pendingState>NOT_READY</pendingState>
    <reasonCodeId>16</reasonCodeId>
    <ReasonCode>
        <category>NOT_READY</category>
        <uri>/finesse/api/ReasonCode/16</uri>
        <code>10</code>
        <label>Team Meeting</label>
        <forAll>true</forAll/>
        <systemCode>false</systemCode>
        <id>16</id>
    </ReasonCode>
    <settings>
        <wrapUpOnIncoming>OPTIONAL</wrapUpOnIncoming>
        <wrapUpOnOutgoing>NOT_ALLOWED</wrapUpOnOutgoing>
        <deviceSelection>enabled</deviceSelection>
    </settings>
    <extension>1001001</extension>
    <mobileAgent>
        <mode>CALL_BY_CALL</mode>
        <dialNumber>4085551234</dialNumber>
    </mobileAgent>
    <firstName>Chris</firstName>
    <lastName>Smith</lastName>
    <teamId>500</teamId>
    <teamName>Sales</teamName>
    <skillTargetId>6067</skillTargetId>
    <dialogs>/finesse/api/User/1001001/Dialogs</dialogs>
    <teams>
        <Team>
            <uri>/finesse/api/Team/2001</uri>
            <id>2001</id>
            <name>First Line Support</name>
        </Team>
        <Team>
            <uri>/finesse/api/Team/2002</uri>
            <id>2002</id>
            <name>Second Line Support</name>
        </Team>
        <Team>
            <uri>/finesse/api/Team/2003</uri>
            <id>2003</id>
            <name>Third Line Support</name>
        </Team>
      ... other teams ...    
    </teams>
    <services>
        <service>AgentAnswers</service>
         ... other services ...
    </services>
    <activeDeviceId>SEP0019305D8EC1</activeDeviceId>
    <Devices>
        <Device>
            <deviceId>SEP0019305D8EC1</deviceId>
            <deviceType>30018</deviceType>
            <deviceTypeName>Cisco 7961</deviceTypeName>
        </Device>
        <Device>
            <deviceId>CSFJP5550016</deviceId>
            <deviceType>503</deviceType>
            <deviceTypeName>Cisco Unified Client Services Framework</deviceTypeName>
        </Device>
    </Devices>
</User>
Note

The <services> element only applies to Unified CCE deployments.