<?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 Using ArcREST to export Feature Layers in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/using-arcrest-to-export-feature-layers/m-p/645156#M36477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a python script to run nightly that exports Feature Layers from AGOL to our local drives. &amp;nbsp;We have a couple of members that are updating their own feature layers, and I am trying to access these. &amp;nbsp;I can get the script to work using....shAGOL = arcrest.AGOLTokenSecurityHandler(username, password).....if the username and password are the AGOL members. &amp;nbsp;However, if I try to use the AGOL Administrator username and password, it can't access the members feature layers. &amp;nbsp;Is there a way to get the script to work using just the Administrator credentials instead of having to ask each member for their passwords? &amp;nbsp;Any help would be appreciated! &amp;nbsp;I am very new to ArcREST, so I am sure that I am missing something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Sep 2016 17:52:39 GMT</pubDate>
    <dc:creator>CynthiaKozma</dc:creator>
    <dc:date>2016-09-01T17:52:39Z</dc:date>
    <item>
      <title>Using ArcREST to export Feature Layers</title>
      <link>https://community.esri.com/t5/data-management-questions/using-arcrest-to-export-feature-layers/m-p/645156#M36477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am writing a python script to run nightly that exports Feature Layers from AGOL to our local drives. &amp;nbsp;We have a couple of members that are updating their own feature layers, and I am trying to access these. &amp;nbsp;I can get the script to work using....shAGOL = arcrest.AGOLTokenSecurityHandler(username, password).....if the username and password are the AGOL members. &amp;nbsp;However, if I try to use the AGOL Administrator username and password, it can't access the members feature layers. &amp;nbsp;Is there a way to get the script to work using just the Administrator credentials instead of having to ask each member for their passwords? &amp;nbsp;Any help would be appreciated! &amp;nbsp;I am very new to ArcREST, so I am sure that I am missing something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Sep 2016 17:52:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-arcrest-to-export-feature-layers/m-p/645156#M36477</guid>
      <dc:creator>CynthiaKozma</dc:creator>
      <dc:date>2016-09-01T17:52:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcREST to export Feature Layers</title>
      <link>https://community.esri.com/t5/data-management-questions/using-arcrest-to-export-feature-layers/m-p/645157#M36478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure if there is enough to go on.&amp;nbsp; It could be authentication isn't the issue but how some of the rest of the code is working when logged in as different users, not necessarily an administrator non-administrator issue.&amp;nbsp; What happens when logged in as an administrator?&amp;nbsp; Does the script error?&amp;nbsp; Are the results different than expected?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 14:50:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-arcrest-to-export-feature-layers/m-p/645157#M36478</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-09-02T14:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcREST to export Feature Layers</title>
      <link>https://community.esri.com/t5/data-management-questions/using-arcrest-to-export-feature-layers/m-p/645158#M36479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We got it figured out. &amp;nbsp;It was later on in the coding. &amp;nbsp;It was a matter of changing the line&lt;/P&gt;&lt;P&gt;user = admin.content.users.user(username=item.owner) to&lt;/P&gt;&lt;P&gt;user = admin.content.users.user(username=username).&lt;/P&gt;&lt;P&gt;It does lead me to another question, though. &amp;nbsp;The purpose of our python code is to back up the feature layers that others are creating and updating on AGOL. &amp;nbsp;Right now, the python code looks for a specific ItemID....is there a way to have the code go into a Members content and list all of their feature layers and itemIDs? &amp;nbsp;This would be ideal since we may not be notified every time someone creates a new layer. &amp;nbsp;Does that make sense? &amp;nbsp;I haven't found a script that does it that way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 17:33:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-arcrest-to-export-feature-layers/m-p/645158#M36479</guid>
      <dc:creator>CynthiaKozma</dc:creator>
      <dc:date>2016-09-02T17:33:53Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcREST to export Feature Layers</title>
      <link>https://community.esri.com/t5/data-management-questions/using-arcrest-to-export-feature-layers/m-p/645159#M36480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to say, "yes, you can do it that way," but I want to double check something first.&amp;nbsp; In the meantime, it might be worth asking this question on the &lt;A href="https://github.com/Esri/ArcREST"&gt;ArcREST Github site&lt;/A&gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Sep 2016 19:07:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-arcrest-to-export-feature-layers/m-p/645159#M36480</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2016-09-02T19:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using ArcREST to export Feature Layers</title>
      <link>https://community.esri.com/t5/data-management-questions/using-arcrest-to-export-feature-layers/m-p/645160#M36481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just to follow up on this, I did get the script working. &amp;nbsp;It was a matter of adding this piece before the user.exportItem.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;admin = arcrest.manageorg.Administration(securityHandler=shAGOL)&lt;BR /&gt; content = admin.content&lt;BR /&gt; portal = admin.portals.portalSelf&lt;BR /&gt; commUsers = portal.users(start=1, num=100)&lt;BR /&gt; commUsers = commUsers['users']&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for commUser in commUsers:&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;user = admin.content.users.user(commUser.username)&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;for userItem in user.items:&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sItem = userItem.id&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sName = userItem.name&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sType = userItem.type&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; sUser = commUser.username&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if sUser == "YakimaStormwater":&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; if sType == "Feature Service":&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Sep 2016 15:50:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/using-arcrest-to-export-feature-layers/m-p/645160#M36481</guid>
      <dc:creator>CynthiaKozma</dc:creator>
      <dc:date>2016-09-09T15:50:08Z</dc:date>
    </item>
  </channel>
</rss>

