PISystems.CurrentUserName Property
- Last UpdatedJan 12, 2026
- 2 minute read
- PI System
- AF SDK 3.2.0
- Developer
Gets the name for the PISystems current identity.
Namespace: OSIsoft.AF
Assembly: OSIsoft.AFSDK (in OSIsoft.AFSDK.dll) Version: 3.2.0.7
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