<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Copying favorites from one user to another in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-favorites-from-one-user-to-another/m-p/1230169#M7986</link>
    <description>&lt;P&gt;Thanks for replying so quickly! Yes, that's what I've ended up doing as well - sending an email with a list of items. As you say, a one-time thing, so not worth delving further into.&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Tristan&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2022 19:48:26 GMT</pubDate>
    <dc:creator>TristanMcHardie</dc:creator>
    <dc:date>2022-11-09T19:48:26Z</dc:date>
    <item>
      <title>Copying favorites from one user to another</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-favorites-from-one-user-to-another/m-p/845876#M3663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to move users from ArcGIS online logins to SSO logins, and one thing I stuck on is favorites.&amp;nbsp; I can get the list of favorites from the old user using the favGroupId but when I try hen I try to&amp;nbsp;add them to the new user by sharing them to the favGroupId (the way I would with any other group), I just get 'notSharedWith' for all the items.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;favs &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; gis&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;groups&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;get&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;olduser&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;favGroupId&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;
&lt;SPAN class="keyword token"&gt;for&lt;/SPAN&gt; fav &lt;SPAN class="keyword token"&gt;in&lt;/SPAN&gt; favs&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;content&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt;
    &lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;fav&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;share&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;groups&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;newuser&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;favGroupId&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;SPAN class="comment token"&gt;# Full item and group IDs edited out&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'notSharedWith'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'94..aa'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'itemId'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'b4..34'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'notSharedWith'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'94..aa'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'itemId'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'a5..77'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;
&lt;SPAN class="punctuation token"&gt;{&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'notSharedWith'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="punctuation token"&gt;[&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;'94..aa'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;]&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'itemId'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;:&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;'64..35'&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;}&lt;/SPAN&gt;‍‍‍‍‍‍‍&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Is there another way to do this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 10:22:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-favorites-from-one-user-to-another/m-p/845876#M3663</guid>
      <dc:creator>SeanSweeney</dc:creator>
      <dc:date>2021-12-12T10:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Copying favorites from one user to another</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-favorites-from-one-user-to-another/m-p/845877#M3664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It turns out the above code works fine as long as I'm logged in to the gis as the newuser, however that doesn't work for me in this scenario because I can't log in as the target SSO users.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It does not work if I'm just logged in as an admin (which is what I tried above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm still looking for another option.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Mar 2019 16:27:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-favorites-from-one-user-to-another/m-p/845877#M3664</guid>
      <dc:creator>SeanSweeney</dc:creator>
      <dc:date>2019-03-28T16:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Copying favorites from one user to another</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-favorites-from-one-user-to-another/m-p/1229755#M7982</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/3576"&gt;@SeanSweeney&lt;/a&gt;,&amp;nbsp;I'm in a similar situation 3.5 years later. Did you figure this one out?&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 01:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-favorites-from-one-user-to-another/m-p/1229755#M7982</guid>
      <dc:creator>TristanMcHardie</dc:creator>
      <dc:date>2022-11-09T01:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: Copying favorites from one user to another</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-favorites-from-one-user-to-another/m-p/1230165#M7985</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/416945"&gt;@TristanMcHardie&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Sadly, I never did figure this one out. I ended up just sending each user a list of their favorites to re-add themselves, which was painful for everyone.&lt;/P&gt;&lt;P&gt;Since this was a one-time thing for us, I never went back to see if anything was ever added to the API for this.&lt;/P&gt;&lt;P&gt;I'm sorry I can't be more help and I hope you can find a better solution.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sean Sweeney&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 19:43:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-favorites-from-one-user-to-another/m-p/1230165#M7985</guid>
      <dc:creator>Sean-Sweeney</dc:creator>
      <dc:date>2022-11-09T19:43:45Z</dc:date>
    </item>
    <item>
      <title>Re: Copying favorites from one user to another</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-favorites-from-one-user-to-another/m-p/1230169#M7986</link>
      <description>&lt;P&gt;Thanks for replying so quickly! Yes, that's what I've ended up doing as well - sending an email with a list of items. As you say, a one-time thing, so not worth delving further into.&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;Tristan&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2022 19:48:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/copying-favorites-from-one-user-to-another/m-p/1230169#M7986</guid>
      <dc:creator>TristanMcHardie</dc:creator>
      <dc:date>2022-11-09T19:48:26Z</dc:date>
    </item>
  </channel>
</rss>

