ArcGIS Pro 3.4 API Reference Guide
ArcGIS.Desktop.Core.Portal Namespace / PortalInfo Class / CanSearchPublic Property
Version

CanSearchPublic Property
Gets a value indicating if public items, groups, and users are included in search queries on the portal. If the user is NOT signed on true (the default) is always returned.
Syntax
public bool CanSearchPublic {get;}
Remarks
When CanSearchPublic is false, no public items outside of the organization are included in searches. However, public items that are part of the organization are returned.
Requirements

Target Platforms: Windows 11, Windows 10

ArcGIS Pro version: 3 or higher.
See Also