ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Desktop.Core.Portal Namespace / PortalInfo Class / CanSharePublic Property

CanSharePublic Property
Gets if the organization allows or disallows a user to share groups or items publicly. If the user is NOT signed on true (the default) is always returned.
Syntax
public bool CanSharePublic {get;}
Remarks
When CanSharePublic is set to false, it denotes that content cannot be shared with everyone. The default is true.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 2.1 or higher.
See Also