ConnectedIdentity Class
- Last UpdatedNov 18, 2025
- 3 minute read
- PI System
- AF SDK 2024 R2
- Developer
Contains information related to the currently connected user.
Inheritance Hierarchy
SystemObject
OSIsoft.AF.SupportConnectedIdentity
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
| Name | Description | |
|---|---|---|
| ConnectedIdentity |
Default constructor that will set everything using the current
WindowsIdentity of the user.
| |
| 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
| Name | Description | |
|---|---|---|
| Expiration |
Returns the expiration time of the current access token as a DateTime.
| |
| Id |
Returns the unique Id for the current user.
| |
| Identity |
Returns the ClaimsIdentity for the current user.
With Windows logins, it will return GetCurrent | |
| IsWindowsIdentity |
Returns true if Identity is a WindowsIdentity.
| |
| Name |
Returns the name of the current user.
|
Methods
| Name | Description | |
|---|---|---|
| Equals | Determines whether the specified object is equal to the current object. (Inherited from Object.) | |
| GetHashCode | Serves as the default hash function. (Inherited from Object.) | |
| 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.
| |
| GetType | Gets the Type of the current instance. (Inherited from Object.) | |
| ToString | Returns a string that represents the current object. (Inherited from Object.) |