ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data Namespace / ServiceConnectionProperties Class / User Property

User Property (ServiceConnectionProperties)
The user used to connect to the service.
Syntax
public string User {get; set;}
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.0 or higher.
See Also