Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

AF SDK Reference

ConnectedIdentity Class

  • Last UpdatedNov 18, 2025
  • 3 minute read
ConnectedIdentity Class
Contains information related to the currently connected user.

Inheritance Hierarchy

SystemObject
  OSIsoft.AF.SupportConnectedIdentity

Namespace:  OSIsoft.AF.Support
Assembly:  OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182

Syntax

public class ConnectedIdentity
Public Class ConnectedIdentity

Dim instance As ConnectedIdentity
public ref class ConnectedIdentity
type ConnectedIdentity =  class end

The ConnectedIdentity type exposes the following members.

Constructors

  NameDescription
Public method
ConnectedIdentity
Default constructor that will set everything using the current WindowsIdentity of the user.
Public method
ConnectedIdentity(IEnumerableClaim)
Takes a list of Claim and creates a ClaimsIdentity. Provides claim information for the Name, Id and Roles list based off the specified Claim list.

Properties

  NameDescription
Public property
Expiration
Returns the expiration time of the current access token as a DateTime.
Public property
Id
Returns the unique Id for the current user.
Public property
Identity
Returns the ClaimsIdentity for the current user. With Windows logins, it will return GetCurrent
Public property
IsWindowsIdentity
Returns true if Identity is a WindowsIdentity.
Public property
Name
Returns the name of the current user.

Methods

  NameDescription
Public method
Equals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public method
GetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public method
GetRoles
Return the list of roles associated with the ClaimsIdentity. If the token has expired, the list of roles will be empty list. WindowsIdentity of the user.
Public method
GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method
ToString
Returns a string that represents the current object.
(Inherited from Object.)

Version Information

AFSDK

Supported in: 3.1.1, 3.1.0, 3.0.2, 3.0.1, 3.0.0

See Also

TitleResults for “How to create a CRG?”Also Available in