# Data Object - UserSession(vim.UserSession)

Property of
  SessionManager
Returned by
  CloneSession, ImpersonateUser, Login, LoginBySSPI, LoginByToken, LoginExtensionByCertificate, LoginExtensionBySubjectName
Extends
  DynamicData
Since
  2.0

## Data Object Description

Information about a current user session.

Properties

Name | Type | Description
--- | --- | ---
callCount | xsd:long | Number of API invocations since the session started Since vSphere API 5.1
extensionSession | xsd:boolean | Whether or not this session belongs to a VC Extension. Since vSphere API 5.0
fullName | xsd:string | The full name of the user, if available.
ipAddress | xsd:string | The client identity. It could be IP address, or pipe name depended on client binding Since vSphere API 5.1
key | xsd:string | A unique identifier for this session, also known as the session ID.
lastActiveTime | xsd:dateTime | Timestamp when the user last executed a command.
locale | xsd:string | The locale for the session used for data formatting and preferred for messages.
loginTime | xsd:dateTime | Timestamp when the user last logged on to the server.
messageLocale | xsd:string | The locale used for messages for the session. If there are no localized messages for the user-specified locale, then the server determines this locale.
userAgent | xsd:string | The name of user agent or application Since vSphere API 5.1
userName | xsd:string | The user name represented by this session.
Properties inherited from DynamicData
None

Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="UserSession"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="key" type="xsd:string"/> <element name="userName" type="xsd:string"/> <element name="fullName" type="xsd:string"/> <element name="loginTime" type="xsd:dateTime"/> <element name="lastActiveTime" type="xsd:dateTime"/> <element name="locale" type="xsd:string"/> <element name="messageLocale" type="xsd:string"/> <element name="extensionSession" type="xsd:boolean"/> <element name="ipAddress" type="xsd:string"/> <element name="userAgent" type="xsd:string"/> <element name="callCount" type="xsd:long"/> </sequence> </extension> </complexContent> </complexType>