shareWith

suspend fun shareWith(everyone: Boolean, organization: Boolean = false): Result<Unit>

Shares this portal item with everyone or just with the user's organization. This method is only available to authenticated users. If both 'everyone' and 'organization' are true, the portal item will be shared with everyone (Public). If both 'everyone' and 'organization' are false, the portal item will be made private, unless the item has been shared with one or more groups. In that case, the items access property will be set to PortalAccess.Shared. The groups an item has been shared with are not affected by this method.

Since

200.0.0

Parameters

everyone

indicates whether the items should be shared with everyone

organization

indicates whether the items should be shared with the organization. By default, it is false not to share within the organization.