<?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 Full directory sync in APIs</title>
    <link>https://community.cisco.com/t5/apis/full-directory-sync/m-p/4885095#M651</link>
    <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;is it possible to do a full directory sync, as “Sync now” in the admin panel?&lt;/P&gt;
&lt;P&gt;I only found this, wich sync only a specific user:&lt;/P&gt;&lt;ASIDE class="quote quote-modified" data-post="1" data-topic="12087"&gt;
  &lt;DIV class="title"&gt;
    &lt;DIV class="quote-controls"&gt;&lt;/DIV&gt;
    &lt;IMG width="20" height="20" src="https://community.cisco.com/legacyfs/online/ciscoduo/letters/k_858c86.png" style="display : inline;" /&gt;
    &lt;A href="https://community.duo.com/t/admin-api-sync-user-directory-not-found/12087"&gt;Admin API Sync User Directory not found&lt;/A&gt; &lt;A class="badge-wrapper  bullet" href="https://community.cisco.com/c/api-forum/24"&gt;&lt;SPAN class="badge-category-bg" style="background-color: #25AAE2;"&gt;&lt;/SPAN&gt;&lt;SPAN style="" data-drop-close="true" class="badge-category clear-badge" title="A public forum for all your questions about Duo’s API. Troubleshoot API issues and learn from our community how others are protecting their applications."&gt;API forum&lt;/SPAN&gt;&lt;/A&gt;
  &lt;/DIV&gt;
  &lt;BLOCKQUOTE&gt;
    I am using a PowerShell script to attempt to sync a user to a directory. I am getting back a 
{"code": 40401, "message": "Resource not found", "message_detail": "Directory not found", "stat": "FAIL"}

Generally when I modify the script I’m getting an “code”: 40401, “message”: “Resource not found” 
This makes me believe its an Auth issue still 
I Am able to successfully get /auth/v2/check to work however 
function New-DuoRequest(){
    param(
        [Parameter(ValueFromPipeline=$True,ValueFromPi…
  &lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;

&lt;P&gt;BR,&lt;BR /&gt;
Bernhard&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 21 Feb 2023 13:38:58 GMT</pubDate>
    <dc:creator>Bernhard_Sayer</dc:creator>
    <dc:date>2023-02-21T13:38:58Z</dc:date>
    <item>
      <title>Full directory sync</title>
      <link>https://community.cisco.com/t5/apis/full-directory-sync/m-p/4885095#M651</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;is it possible to do a full directory sync, as “Sync now” in the admin panel?&lt;/P&gt;
&lt;P&gt;I only found this, wich sync only a specific user:&lt;/P&gt;&lt;ASIDE class="quote quote-modified" data-post="1" data-topic="12087"&gt;
  &lt;DIV class="title"&gt;
    &lt;DIV class="quote-controls"&gt;&lt;/DIV&gt;
    &lt;IMG width="20" height="20" src="https://community.cisco.com/legacyfs/online/ciscoduo/letters/k_858c86.png" style="display : inline;" /&gt;
    &lt;A href="https://community.duo.com/t/admin-api-sync-user-directory-not-found/12087"&gt;Admin API Sync User Directory not found&lt;/A&gt; &lt;A class="badge-wrapper  bullet" href="https://community.cisco.com/c/api-forum/24"&gt;&lt;SPAN class="badge-category-bg" style="background-color: #25AAE2;"&gt;&lt;/SPAN&gt;&lt;SPAN style="" data-drop-close="true" class="badge-category clear-badge" title="A public forum for all your questions about Duo’s API. Troubleshoot API issues and learn from our community how others are protecting their applications."&gt;API forum&lt;/SPAN&gt;&lt;/A&gt;
  &lt;/DIV&gt;
  &lt;BLOCKQUOTE&gt;
    I am using a PowerShell script to attempt to sync a user to a directory. I am getting back a 
{"code": 40401, "message": "Resource not found", "message_detail": "Directory not found", "stat": "FAIL"}

Generally when I modify the script I’m getting an “code”: 40401, “message”: “Resource not found” 
This makes me believe its an Auth issue still 
I Am able to successfully get /auth/v2/check to work however 
function New-DuoRequest(){
    param(
        [Parameter(ValueFromPipeline=$True,ValueFromPi…
  &lt;/BLOCKQUOTE&gt;
&lt;/ASIDE&gt;

&lt;P&gt;BR,&lt;BR /&gt;
Bernhard&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Feb 2023 13:38:58 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/full-directory-sync/m-p/4885095#M651</guid>
      <dc:creator>Bernhard_Sayer</dc:creator>
      <dc:date>2023-02-21T13:38:58Z</dc:date>
    </item>
    <item>
      <title>Re: Full directory sync</title>
      <link>https://community.cisco.com/t5/apis/full-directory-sync/m-p/4885096#M652</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Yes it is we actually found the issue its that the admin api was not enabled on that tenant&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2X_5_52d5f1c08649212fe6768d2cacdcf8df711810d9.jpeg" style="width: 100px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/191051i86AA5D69DE081889/image-size/large?v=v2&amp;amp;px=999" role="button" title="2X_5_52d5f1c08649212fe6768d2cacdcf8df711810d9.jpeg" alt="2X_5_52d5f1c08649212fe6768d2cacdcf8df711810d9.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2X_7_700165720f60e85f71044cfea6c42bfb83b9fdc9.jpeg" style="width: 419px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/191158i3E8A73385A72F3FA/image-size/large?v=v2&amp;amp;px=999" role="button" title="2X_7_700165720f60e85f71044cfea6c42bfb83b9fdc9.jpeg" alt="2X_7_700165720f60e85f71044cfea6c42bfb83b9fdc9.jpeg" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2X_9_9b5158cd1311f1a41db3c3ccb2ef51c865e7f039.png" style="width: 500px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/191198i5180E282F8D7CA99/image-size/large?v=v2&amp;amp;px=999" role="button" title="2X_9_9b5158cd1311f1a41db3c3ccb2ef51c865e7f039.png" alt="2X_9_9b5158cd1311f1a41db3c3ccb2ef51c865e7f039.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2X_5_57d1c72114a8bad1b120bf9ecf7aa70657f75c11.png" style="width: 195px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/191149i46189CCA482F385B/image-size/large?v=v2&amp;amp;px=999" role="button" title="2X_5_57d1c72114a8bad1b120bf9ecf7aa70657f75c11.png" alt="2X_5_57d1c72114a8bad1b120bf9ecf7aa70657f75c11.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Feb 2023 15:35:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/full-directory-sync/m-p/4885096#M652</guid>
      <dc:creator>Keonip</dc:creator>
      <dc:date>2023-02-21T15:35:22Z</dc:date>
    </item>
    <item>
      <title>Re: Full directory sync</title>
      <link>https://community.cisco.com/t5/apis/full-directory-sync/m-p/4885097#M653</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;No, today it is not possible to perform a full sync via Admin API, just syncs of individual users.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Feb 2023 15:35:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/full-directory-sync/m-p/4885097#M653</guid>
      <dc:creator>DuoKristina</dc:creator>
      <dc:date>2023-02-21T15:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Full directory sync</title>
      <link>https://community.cisco.com/t5/apis/full-directory-sync/m-p/4885098#M654</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Wait, you’re saying that you can do a full AD sync using the API? We use the PowerShell module on Github and it can sync just a single user.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/mbegan/Duo-PSModule" rel="noopener nofollow ugc"&gt;mbegan/Duo-PSModule: Duo Admin API Powershell Wrapper Module (github.com)&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Feb 2023 17:56:04 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/full-directory-sync/m-p/4885098#M654</guid>
      <dc:creator>Gigawatt</dc:creator>
      <dc:date>2023-02-21T17:56:04Z</dc:date>
    </item>
    <item>
      <title>Re: Full directory sync</title>
      <link>https://community.cisco.com/t5/apis/full-directory-sync/m-p/4885099#M655</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Hi Keonip,&lt;BR /&gt;
so it should be possible?&lt;BR /&gt;
How?&lt;BR /&gt;
PS: API is enabled, because i am able to sync individual users …&lt;BR /&gt;
BR,&lt;BR /&gt;
Bernhard&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Feb 2023 06:52:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/full-directory-sync/m-p/4885099#M655</guid>
      <dc:creator>Bernhard_Sayer</dc:creator>
      <dc:date>2023-02-22T06:52:11Z</dc:date>
    </item>
  </channel>
</rss>

