I have been using a slightly modified version of this example (Example: Copy content—Portal for ArcGIS (10.5.x) | ArcGIS Enterprise) to try to copy content between two Portals (source is a 10.4.1 and target is a 10.5).
The scripts runs and content is created on the target Portal, but it is just a reference to the source Portal, not the actual content. So when you click on the item, the user is asked for source portal credentials.
What am I doing wrong? Is there a default setting that creates a reference rather than an actual copy?
Thanks for your time!!
Morten