ArcGIS Pro 2.8 API Reference Guide
CanSharePublic Property

ArcGIS.Desktop.Core.Portal Namespace > PortalInfo Class : 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;}
Public ReadOnly Property CanSharePublic As Boolean
Remarks
When CanSharePublic is set to false, it denotes that content cannot be shared with everyone. The default is true.
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

PortalInfo Class
PortalInfo Members