ArcGIS Pro 2.6 API Reference Guide
OrganizationId Property (PortalInfo)

ArcGIS.Desktop.Core.Portal Namespace > PortalInfo Class : OrganizationId Property
Gets the id of the organization, if the user belongs to one.
Syntax
public string OrganizationId {get;}
Public ReadOnly Property OrganizationId As String
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

PortalInfo Class
PortalInfo Members