ArcGIS Pro 2.7 API Reference Guide
Access Property (PortalItem)

ArcGIS.Desktop.Core.Portal Namespace > PortalItem Class : Access Property
Gets the access level on the item. Private is the default and only the item owner can access. Shared means the item is shared with a specific group. Organization restricts item access to members of your organization. Public means any user can access the item.
Syntax
public PortalAccess Access {get;}
Public ReadOnly Property Access As PortalAccess
Requirements

Target Platforms: Windows 10, Windows 8.1

See Also

Reference

PortalItem Class
PortalItem Members