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

AF SDK Reference

PISystems.CurrentUserName Property

  • Last UpdatedNov 18, 2025
  • 2 minute read
PISystems.CurrentUserName Property
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: String
The 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

Version Information

AFSDK

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

See Also

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