PISystems.CurrentUserName Property
- Last UpdatedNov 18, 2025
- 2 minute read
- PI System
- AF SDK 2024 R2
- Developer
Gets the name for the PISystems current identity.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.1.1.1182
Syntax
public string CurrentUserName { get; }
Public ReadOnly Property CurrentUserName As String Get Dim instance As PISystems Dim value As String value = instance.CurrentUserName
public: property String^ CurrentUserName { String^ get (); }
member CurrentUserName : string with get
Property Value
Type: StringThe name of the PISystems current identity.
Remarks
If a ClaimsIdentity was used when initializing the object, the
name will be pulled from the Claim list.
If connecting with OpenId connect and Current is set,
this will return the name for the OpenId user. Otherwise this falls back
to GetCurrent