ArcGIS Pro 2.7 API Reference Guide
GetSignOnUsername Method

ArcGIS.Desktop.Core Namespace > ArcGISPortal Class : GetSignOnUsername Method
Gets the username for the current connection This method should be called from within a QueuedTask or System.Threading.Task.
Syntax
public string GetSignOnUsername()
Public Function GetSignOnUsername() As String
Remarks
Known issue: A thread check is not enforced.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

ArcGISPortal Class
ArcGISPortal Members