From a75d557276c7e535c1426e4921154f4934e61506 Mon Sep 17 00:00:00 2001 From: Tarun Kukreja Date: Tue, 8 Jul 2025 14:35:50 -0700 Subject: [PATCH 1/5] clone a group guide updated --- .../03_org_administrators/clone_a_group.ipynb | 1999 +---------------- 1 file changed, 47 insertions(+), 1952 deletions(-) diff --git a/samples/03_org_administrators/clone_a_group.ipynb b/samples/03_org_administrators/clone_a_group.ipynb index c4965ec9ca..d7c8571398 100644 --- a/samples/03_org_administrators/clone_a_group.ipynb +++ b/samples/03_org_administrators/clone_a_group.ipynb @@ -31,7 +31,8 @@ "outputs": [], "source": [ "from arcgis.gis import GIS\n", - "from IPython.display import display" + "from IPython.display import display\n", + "from arcgis.gis import ItemTypeEnum, ItemProperties" ] }, { @@ -45,7 +46,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -53,7 +54,7 @@ "# since we are cloning a public group\n", "source = GIS()\n", "\n", - "target = GIS(\"https://pythonapi.playground.esri.com/portal\")" + "target = GIS(profile=\"your_org_profile\")" ] }, { @@ -66,18 +67,19 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 7, "metadata": {}, "outputs": [ { "data": { "text/plain": [ "[,\n", + " ,\n", " ,\n", " ]" ] }, - "execution_count": 5, + "execution_count": 7, "metadata": {}, "output_type": "execute_result" } @@ -89,7 +91,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 8, "metadata": {}, "outputs": [ { @@ -119,13 +121,13 @@ "" ] }, - "execution_count": 7, + "execution_count": 8, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "source_group = source_groups[1]\n", + "source_group = source_groups[2]\n", "source_group" ] }, @@ -138,84 +140,16 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 9, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "[,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ,\n", - " ]" + "[]" ] }, - "execution_count": 8, + "execution_count": 9, "metadata": {}, "output_type": "execute_result" } @@ -236,7 +170,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 10, "metadata": {}, "outputs": [ { @@ -244,26 +178,26 @@ "text/html": [ "
\n", "
\n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "
\n", - " Vector Basemaps\n", + " Vector Basemaps\n", " \n", "
\n", "
Summary: This group contains a set of Esri vector basemaps that are available for use in ArcGIS Online. The group contains both web maps and tile layers. \n", - "
Description:
For several years, Esri has made available a suite of basemaps that can be used through ArcGIS Online and other apps to create maps and apps. These multi-scale basemaps have been delivered as pre-rendered image tiles (JPG or PNG format) to optimize performance. These basemaps have proven to be very useful and popular, with several billion tiles served each month, but they have some limitations (e.g. users can not customize map, low-res image tiles not optimal for display on high-res devices, etc.).

To provide additional options for users, Esri has introduced a new set of vector basemaps. These basemaps are delivered as vector tiles (PBF format) that are rendered client-side based on a style file that is delivered with the vector tiles. Vector basemaps are available in Map Viewer and Scene Viewer, as well as in ArcGIS Pro, configurable apps that include a basemap gallery, Workforce for ArcGIS, Explorer for ArcGIS, and apps created using Web AppBuilder. To find out whether vector basemaps are available in a specific ArcGIS app, refer to the app documentation. Users are able to customize the look and feel of the vector basemaps by creating custom styles that are used to render the vector tiles.

Available Vector Basemaps

This group includes vector basemaps in multiple styles, some that closely resemble existing Esri basemaps (e.g. Streets, Topographic, Light and Dark Gray Canvas, Terrain with Labels), and others that are new (e.g. Streets at Night, Navigation, and Imagery Hybrid).  The group also includes several more 'creative' styles (e.g. Colored Pencil, Charted Territory, Mid-Century, Modern Antique) that are optimized for specific uses.  It also includes a new OpenStreetMap vector basemap created and hosted by Esri.  The vector basemaps are available as both web maps, which can be used as a basemap for adding other layers, and as tile layers, which can be added to existing maps either as a basemap or overlay layer.

Learn More

To learn more, including how you can customize the Esri vector basemaps, you can refer to the blog posts tagged with "vector basemaps".  You can also use the new Vector Tile Style Editor app to quickly create your own custom map.  The Vector Tile Style Editor app has now been integrated with ArcGIS Online so it is accessible from vector tile layer items in the ArcGIS.com Map Viewer.
\n", - "
Owner: arcgis_python\n", - "
Created: August 08, 2019\n", + "
Description:
For several years, Esri has made available a suite of basemaps that can be used through ArcGIS Online and other apps to create maps and apps. These multi-scale basemaps have been delivered as pre-rendered image tiles (JPG or PNG format) to optimize performance. These basemaps have proven to be very useful and popular, with several billion tiles served each month, but they have some limitations (e.g. users can not customize map, low-res image tiles not optimal for display on high-res devices, etc.).

To provide additional options for users, Esri has introduced a new set of vector basemaps. These basemaps are delivered as vector tiles (PBF format) that are rendered client-side based on a style file that is delivered with the vector tiles. Vector basemaps are available in Map Viewer and Scene Viewer, as well as in ArcGIS Pro, configurable apps that include a basemap gallery, Workforce for ArcGIS, Explorer for ArcGIS, and apps created using Web AppBuilder. To find out whether vector basemaps are available in a specific ArcGIS app, refer to the app documentation. Users are able to customize the look and feel of the vector basemaps by creating custom styles that are used to render the vector tiles.

Available Vector Basemaps

This group includes vector basemaps in multiple styles, some that closely resemble existing Esri basemaps (e.g. Streets, Topographic, Light and Dark Gray Canvas, Terrain with Labels), and others that are new (e.g. Streets at Night, Navigation, and Imagery Hybrid).  The group also includes several more 'creative' styles (e.g. Colored Pencil, Charted Territory, Mid-Century, Modern Antique) that are optimized for specific uses.  It also includes a new OpenStreetMap vector basemap created and hosted by Esri.  The vector basemaps are available as both web maps, which can be used as a basemap for adding other layers, and as tile layers, which can be added to existing maps either as a basemap or overlay layer.

Learn More

To learn more, including how you can customize the Esri vector basemaps, you can refer to the blog posts tagged with "vector basemaps".  You can also use the new Vector Tile Style Editor app to quickly create your own custom map.  The Vector Tile Style Editor app has now been integrated with ArcGIS Online so it is accessible from vector tile layer items in the ArcGIS.com Map Viewer.
\n", + "
Owner: tar12555@AVWORLD\n", + "
Created: July 08, 2025\n", "\n", "
\n", "
\n", " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -309,7 +243,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 11, "metadata": {}, "outputs": [], "source": [ @@ -327,7 +261,7 @@ " #if an item is not a part of the group in the target portal then share it \n", " if s_item not in target_group.content():\n", " s_item.sharing.groups.add(\n", - " group= target_group\n", + " group=target_group\n", " )\n", " \n", " #remove the already existing item from the list of items to be cloned\n", @@ -348,7 +282,7 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 21, "metadata": {}, "outputs": [ { @@ -356,1859 +290,23 @@ "text/html": [ "
\n", "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " ArcGIS Vector Tile Style Editor\n", - " \n", - "
Web Mapping Application by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Charted Territory\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Charted Territory Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Colored Pencil\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Colored Pencil Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Community\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Community Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Dark Gray Canvas\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Dark Gray Canvas\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Dark Gray Canvas (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Dark Gray Canvas Base\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Dark Gray Canvas Reference\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - " \n", "\n", "
\n", - " Dark Gray Canvas Reference (Local Language)\n", + " Colored Pencil Map\n", " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", + "
This world basemap features symbolized with the appearance of being hand-drawn by colored pencils. (World Edition)
Web Map by tar12555@AVWORLD\n", + "
Last Modified: July 08, 2025\n", "
0 comments, 0 views\n", "
\n", "
\n", " " ], "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Base\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Dark Base\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Dark Detail\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Dark Label\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Dark Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Detail\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Label\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Human Geography Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Hybrid Reference Layer\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Hybrid Reference Layer (Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Imagery Hybrid\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Imagery Hybrid (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Light Gray Canvas\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Light Gray Canvas\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Light Gray Canvas (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Light Gray Canvas Base\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Light Gray Canvas Reference\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Light Gray Canvas Reference (Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Mid-Century\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Mid-Century Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Modern Antique\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Modern Antique Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " National Geographic Style\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " National Geographic Style Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Navigation\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Navigation (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Newspaper\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Newspaper Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Nova\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Nova Map\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Ocean Basemap\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " OpenStreetMap\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " OpenStreetMap Vector Basemap\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Streets\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Streets (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Streets (Night - Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Streets (Night)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Streets (with Relief)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Terrain with Labels\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Terrain with Labels (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Topographic\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " Topographic (Local Language)\n", - " \n", - "
Web Map by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Navigation Map\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Navigation Map (Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Ocean Reference\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Street Map\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Street Map (Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Street Map (Night - Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Street Map (Night)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Street Map (with Relief)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Terrain Base\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Terrain Reference\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Terrain Reference (Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Terrain with Labels\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Topographic Map\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" - ] - }, - "metadata": {}, - "output_type": "display_data" - }, - { - "data": { - "text/html": [ - "
\n", - "
\n", - " \n", - " \n", - " \n", - "
\n", - "\n", - "
\n", - " World Topographic Map (Local Language)\n", - " \n", - "
Vector Tile Layer by arcgis_python\n", - "
Last Modified: August 08, 2019\n", - "
0 comments, 0 views\n", - "
\n", - "
\n", - " " - ], - "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -2219,26 +317,23 @@ "#cloning all items that were not present on the portal before\n", "for item in items_to_be_cloned: \n", " try:\n", - " with tempfile.TemporaryDirectory() as temp_dir:\n", - " thumbnail_file = item.download_thumbnail(temp_dir)\n", - " metadata_file = item.download_metadata(temp_dir)\n", - " target_item_properties = {'title': item.title,\n", - " 'tags': item.tags,\n", - " 'text':item.get_data(True),\n", - " 'type':item.type,\n", - " 'url':item.url\n", - " } \n", - " #create an item\n", - " root_folder = target.content.folders.get()\n", - " target_item = root_folder.add(target_item_properties, thumbnail=thumbnail_file)\n", - " \n", - " #share that item with the group on the target portal\n", - " target_item.sharing.groups.add(\n", - " group=target_group\n", - " )\n", - " \n", - " #display the item\n", - " display(target_item)\n", + " target_item_properties = ItemProperties(title=item.title,\n", + " tags=item.tags,\n", + " text=item.get_data(True),\n", + " item_type=item.type,\n", + " snippet=item.snippet,\n", + " description=item.description) \n", + " #create an item\n", + " root_folder = target.content.folders.get()\n", + " target_item = root_folder.add(item_properties=target_item_properties, item_id=item.id).result()\n", + " \n", + " #share that item with the group on the target portal\n", + " target_item.sharing.groups.add(\n", + " group=target_group\n", + " )\n", + " \n", + " #display the item\n", + " display(target_item)\n", " \n", " except Exception as e:\n", " print('Item {} could not be created in the target portal'.format(item.title))\n", @@ -2262,7 +357,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.11.0" + "version": "3.11.11" }, "toc": { "base_numbering": 1, From 975357259c88ccc80ede9f3cc3a439d3425066ae Mon Sep 17 00:00:00 2001 From: Tarun Kukreja Date: Wed, 9 Jul 2025 11:56:32 -0700 Subject: [PATCH 2/5] requested changes complete --- .../03_org_administrators/clone_a_group.ipynb | 44 +++++++++++++++---- 1 file changed, 35 insertions(+), 9 deletions(-) diff --git a/samples/03_org_administrators/clone_a_group.ipynb b/samples/03_org_administrators/clone_a_group.ipynb index d7c8571398..4e241377b2 100644 --- a/samples/03_org_administrators/clone_a_group.ipynb +++ b/samples/03_org_administrators/clone_a_group.ipynb @@ -26,7 +26,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -54,7 +54,7 @@ "# since we are cloning a public group\n", "source = GIS()\n", "\n", - "target = GIS(profile=\"your_org_profile\")" + "target = GIS(profile=\"your_online_profile\")" ] }, { @@ -67,7 +67,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 5, "metadata": {}, "outputs": [ { @@ -79,7 +79,7 @@ " ]" ] }, - "execution_count": 7, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -91,7 +91,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 6, "metadata": {}, "outputs": [ { @@ -121,7 +121,7 @@ "" ] }, - "execution_count": 8, + "execution_count": 6, "metadata": {}, "output_type": "execute_result" } @@ -241,6 +241,23 @@ "It is possible that some items to be cloned may already be present on the target portal. In such a situation, we simply share those items with the target group. Thus, in the section below, we renew our list of items to be cloned by removing from it, any item that was existing on the target portal beforehand." ] }, + { + "cell_type": "code", + "execution_count": 1, + "metadata": {}, + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "Object `root_folder.add` not found.\n" + ] + } + ], + "source": [ + "root_folder.add?" + ] + }, { "cell_type": "code", "execution_count": 11, @@ -280,6 +297,15 @@ "Now after having removed the existing items from the list of items to be cloned, we can easily copy the remaining content of the source group to the newly created group in the target portal. " ] }, + { + "cell_type": "code", + "execution_count": 7, + "metadata": {}, + "outputs": [], + "source": [ + "root_folder = target.content.folders.get()" + ] + }, { "cell_type": "code", "execution_count": 21, @@ -319,14 +345,14 @@ " try:\n", " target_item_properties = ItemProperties(title=item.title,\n", " tags=item.tags,\n", - " text=item.get_data(True),\n", + " text=item.get_data(try_json=True),\n", " item_type=item.type,\n", " snippet=item.snippet,\n", " description=item.description) \n", " #create an item\n", " root_folder = target.content.folders.get()\n", - " target_item = root_folder.add(item_properties=target_item_properties, item_id=item.id).result()\n", - " \n", + " job = root_folder.add(item_properties=target_item_properties, item_id=item.id)\n", + " target_item = job.result()\n", " #share that item with the group on the target portal\n", " target_item.sharing.groups.add(\n", " group=target_group\n", From bbfb8de4881b2435c58d0c77f7076b61757e7384 Mon Sep 17 00:00:00 2001 From: Tarun Kukreja Date: Wed, 9 Jul 2025 12:08:56 -0700 Subject: [PATCH 3/5] reverted unnecessary cells --- .../03_org_administrators/clone_a_group.ipynb | 30 ++----------------- 1 file changed, 2 insertions(+), 28 deletions(-) diff --git a/samples/03_org_administrators/clone_a_group.ipynb b/samples/03_org_administrators/clone_a_group.ipynb index 4e241377b2..c321f2c2bd 100644 --- a/samples/03_org_administrators/clone_a_group.ipynb +++ b/samples/03_org_administrators/clone_a_group.ipynb @@ -32,7 +32,7 @@ "source": [ "from arcgis.gis import GIS\n", "from IPython.display import display\n", - "from arcgis.gis import ItemTypeEnum, ItemProperties" + "from arcgis.gis import ItemProperties" ] }, { @@ -54,7 +54,7 @@ "# since we are cloning a public group\n", "source = GIS()\n", "\n", - "target = GIS(profile=\"your_online_profile\")" + "target = GIS(profile=\"your_organization_profile\")" ] }, { @@ -241,23 +241,6 @@ "It is possible that some items to be cloned may already be present on the target portal. In such a situation, we simply share those items with the target group. Thus, in the section below, we renew our list of items to be cloned by removing from it, any item that was existing on the target portal beforehand." ] }, - { - "cell_type": "code", - "execution_count": 1, - "metadata": {}, - "outputs": [ - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Object `root_folder.add` not found.\n" - ] - } - ], - "source": [ - "root_folder.add?" - ] - }, { "cell_type": "code", "execution_count": 11, @@ -297,15 +280,6 @@ "Now after having removed the existing items from the list of items to be cloned, we can easily copy the remaining content of the source group to the newly created group in the target portal. " ] }, - { - "cell_type": "code", - "execution_count": 7, - "metadata": {}, - "outputs": [], - "source": [ - "root_folder = target.content.folders.get()" - ] - }, { "cell_type": "code", "execution_count": 21, From 6616a7ca9df22ea4780a28c712f845c2c6ac24fd Mon Sep 17 00:00:00 2001 From: Tarun Kukreja Date: Thu, 31 Jul 2025 11:52:16 -0700 Subject: [PATCH 4/5] thumbnail added, notes regarding groups.clone and GroupMigrationManager added --- .../03_org_administrators/clone_a_group.ipynb | 34 ++++++++++++++----- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/samples/03_org_administrators/clone_a_group.ipynb b/samples/03_org_administrators/clone_a_group.ipynb index c321f2c2bd..3f6788d823 100644 --- a/samples/03_org_administrators/clone_a_group.ipynb +++ b/samples/03_org_administrators/clone_a_group.ipynb @@ -26,7 +26,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 4, "metadata": {}, "outputs": [], "source": [ @@ -46,7 +46,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 7, "metadata": {}, "outputs": [], "source": [ @@ -67,7 +67,7 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -79,7 +79,7 @@ " ]" ] }, - "execution_count": 5, + "execution_count": 3, "metadata": {}, "output_type": "execute_result" } @@ -91,7 +91,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 4, "metadata": {}, "outputs": [ { @@ -121,7 +121,7 @@ "" ] }, - "execution_count": 6, + "execution_count": 4, "metadata": {}, "output_type": "execute_result" } @@ -140,7 +140,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 5, "metadata": {}, "outputs": [ { @@ -149,7 +149,7 @@ "[]" ] }, - "execution_count": 9, + "execution_count": 5, "metadata": {}, "output_type": "execute_result" } @@ -273,6 +273,13 @@ " break\n" ] }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "**Note:** The [GroupManager.clone()](https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#arcgis.gis.GroupManager.clone) doesn't clone the group’s items, it only recreates groups from site A to site B. " + ] + }, { "cell_type": "markdown", "metadata": {}, @@ -317,12 +324,14 @@ "#cloning all items that were not present on the portal before\n", "for item in items_to_be_cloned: \n", " try:\n", + " thumbnail_file = item.download_thumbnail()\n", " target_item_properties = ItemProperties(title=item.title,\n", " tags=item.tags,\n", " text=item.get_data(try_json=True),\n", " item_type=item.type,\n", " snippet=item.snippet,\n", - " description=item.description) \n", + " description=item.description,\n", + " thumbnail=thumbnail_file) \n", " #create an item\n", " root_folder = target.content.folders.get()\n", " job = root_folder.add(item_properties=target_item_properties, item_id=item.id)\n", @@ -339,6 +348,13 @@ " print('Item {} could not be created in the target portal'.format(item.title))\n", " print(e)" ] + }, + { + "cell_type": "markdown", + "metadata": {}, + "source": [ + "Please see [GroupMigrationManager](https://developers.arcgis.com/python/latest/api-reference/arcgis.gis.toc.html#groupmigrationmanager) for offline exporting of group items" + ] } ], "metadata": { From fb5e2aacf2fb6d0bb78f3ebdde1a402bc4fa1f60 Mon Sep 17 00:00:00 2001 From: Tarun Kukreja Date: Thu, 31 Jul 2025 13:11:26 -0700 Subject: [PATCH 5/5] changed owner of items --- samples/03_org_administrators/clone_a_group.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/samples/03_org_administrators/clone_a_group.ipynb b/samples/03_org_administrators/clone_a_group.ipynb index 3f6788d823..694a871e13 100644 --- a/samples/03_org_administrators/clone_a_group.ipynb +++ b/samples/03_org_administrators/clone_a_group.ipynb @@ -189,7 +189,7 @@ "
\n", "
Summary: This group contains a set of Esri vector basemaps that are available for use in ArcGIS Online. The group contains both web maps and tile layers. \n", "
Description:
For several years, Esri has made available a suite of basemaps that can be used through ArcGIS Online and other apps to create maps and apps. These multi-scale basemaps have been delivered as pre-rendered image tiles (JPG or PNG format) to optimize performance. These basemaps have proven to be very useful and popular, with several billion tiles served each month, but they have some limitations (e.g. users can not customize map, low-res image tiles not optimal for display on high-res devices, etc.).

To provide additional options for users, Esri has introduced a new set of vector basemaps. These basemaps are delivered as vector tiles (PBF format) that are rendered client-side based on a style file that is delivered with the vector tiles. Vector basemaps are available in Map Viewer and Scene Viewer, as well as in ArcGIS Pro, configurable apps that include a basemap gallery, Workforce for ArcGIS, Explorer for ArcGIS, and apps created using Web AppBuilder. To find out whether vector basemaps are available in a specific ArcGIS app, refer to the app documentation. Users are able to customize the look and feel of the vector basemaps by creating custom styles that are used to render the vector tiles.

Available Vector Basemaps

This group includes vector basemaps in multiple styles, some that closely resemble existing Esri basemaps (e.g. Streets, Topographic, Light and Dark Gray Canvas, Terrain with Labels), and others that are new (e.g. Streets at Night, Navigation, and Imagery Hybrid).  The group also includes several more 'creative' styles (e.g. Colored Pencil, Charted Territory, Mid-Century, Modern Antique) that are optimized for specific uses.  It also includes a new OpenStreetMap vector basemap created and hosted by Esri.  The vector basemaps are available as both web maps, which can be used as a basemap for adding other layers, and as tile layers, which can be added to existing maps either as a basemap or overlay layer.

Learn More

To learn more, including how you can customize the Esri vector basemaps, you can refer to the blog posts tagged with "vector basemaps".  You can also use the new Vector Tile Style Editor app to quickly create your own custom map.  The Vector Tile Style Editor app has now been integrated with ArcGIS Online so it is accessible from vector tile layer items in the ArcGIS.com Map Viewer.
\n", - "
Owner: tar12555@AVWORLD\n", + "
Owner: esri\n", "
Created: July 08, 2025\n", "\n", " \n", @@ -197,7 +197,7 @@ " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -305,7 +305,7 @@ "
\n", " Colored Pencil Map\n", " \n", - "
This world basemap features symbolized with the appearance of being hand-drawn by colored pencils. (World Edition)
Web Map by tar12555@AVWORLD\n", + "
This world basemap features symbolized with the appearance of being hand-drawn by colored pencils. (World Edition)
Web Map by esri\n", "
Last Modified: July 08, 2025\n", "
0 comments, 0 views\n", "
\n", @@ -313,7 +313,7 @@ " " ], "text/plain": [ - "" + "" ] }, "metadata": {},