ArcGIS Pro 2.9 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 new PortalAccess Access {get;}
Public Shadows ReadOnly Property Access As PortalAccess
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

PortalItem Class
PortalItem Members