Sharing files or folders is only possible if sharing capabilities are set in permissions.properties

# Allows users to create share links to share files or folders. Default is true.
com.openexchange.capability.share_links=true

# Allows users to share files or folder with guest users. Default is true.
com.openexchange.capability.invite_guests=true