<?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: List users for all Child accounts via Accounts API in APIs</title>
    <link>https://community.cisco.com/t5/apis/list-users-for-all-child-accounts-via-accounts-api/m-p/4878932#M219</link>
    <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Sorry to bump this thread but I have the exact same problem. The solution as is posted by DuoKristina simply does not work for me.&lt;/P&gt;
&lt;P&gt;When using the admin API with the ApiKey and Secret from the Accounts API I get an error:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Invalid signature in request credentials&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Seperately the credentials work fine for all /account api calls. As do the key and secret for the admin API.&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 11 Jan 2022 22:14:20 GMT</pubDate>
    <dc:creator>me1299</dc:creator>
    <dc:date>2022-01-11T22:14:20Z</dc:date>
    <item>
      <title>List users for all Child accounts via Accounts API</title>
      <link>https://community.cisco.com/t5/apis/list-users-for-all-child-accounts-via-accounts-api/m-p/4878930#M217</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;We are trying to list the users from all of our Child accounts using the Accounts API. The documentation is very sparse for accessing child accounts, it just says to use the Accounts API and append account_id=[enter the accountid] to the end of an API call. However, it isn’t working. I’ve tried using both the Accounts API keypair or the Admin api keypair, but both respond with an error that the signature is wrong. When making requests without the account_id, it works just fine.&lt;/P&gt;
&lt;P&gt;Has anyone had experience with accessing child accounts programmatically?&lt;/P&gt;
&lt;P&gt;We are using PowerShell for our API calls, but I can parse through Python or Perl if you have examples.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Jul 2021 17:12:13 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/list-users-for-all-child-accounts-via-accounts-api/m-p/4878930#M217</guid>
      <dc:creator>firstcolumn</dc:creator>
      <dc:date>2021-07-22T17:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: List users for all Child accounts via Accounts API</title>
      <link>https://community.cisco.com/t5/apis/list-users-for-all-child-accounts-via-accounts-api/m-p/4878931#M218</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Like this…&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;Create the Accounts API integration in the parent.&lt;/LI&gt;
&lt;LI&gt;Find the target child’s account ID with a post to /accounts/v1/accounts/list (or poke around in the Admin Panel &amp;gt; Accounts page)&lt;/LI&gt;
&lt;LI&gt;the admin api GET request is like &lt;CODE&gt;https://parent.duosecurity.com/admin/v1/users?account_id=THECHILDACCOUNTIDX&lt;/CODE&gt; and uses the ikey/skey from the Accounts API integration created in step 1.&lt;/LI&gt;
&lt;/OL&gt;&lt;/DIV&gt;</description>
      <pubDate>Fri, 23 Jul 2021 19:54:27 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/list-users-for-all-child-accounts-via-accounts-api/m-p/4878931#M218</guid>
      <dc:creator>DuoKristina</dc:creator>
      <dc:date>2021-07-23T19:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: List users for all Child accounts via Accounts API</title>
      <link>https://community.cisco.com/t5/apis/list-users-for-all-child-accounts-via-accounts-api/m-p/4878932#M219</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Sorry to bump this thread but I have the exact same problem. The solution as is posted by DuoKristina simply does not work for me.&lt;/P&gt;
&lt;P&gt;When using the admin API with the ApiKey and Secret from the Accounts API I get an error:&lt;/P&gt;
&lt;BLOCKQUOTE&gt;
&lt;P&gt;Invalid signature in request credentials&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Seperately the credentials work fine for all /account api calls. As do the key and secret for the admin API.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 11 Jan 2022 22:14:20 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/list-users-for-all-child-accounts-via-accounts-api/m-p/4878932#M219</guid>
      <dc:creator>me1299</dc:creator>
      <dc:date>2022-01-11T22:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: List users for all Child accounts via Accounts API</title>
      <link>https://community.cisco.com/t5/apis/list-users-for-all-child-accounts-via-accounts-api/m-p/4878933#M220</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;I got this working by making sure that the child account ID was hashed into the authentication request. I’m using PowerShell, and the New-DuoRequest module found here &lt;A href="https://github.com/StarkCaptain/duo/blob/master/scripts/new-duoRequest.ps1" rel="noopener nofollow ugc"&gt;duo/new-duoRequest.ps1 at master · StarkCaptain/duo · GitHub&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;My request looks like this:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class="lang-auto"&gt;New-DuoRequest -apiHost "api-parent.duosecurity.co" -apiEndpoint "/admin/v1/users" -requestMethod "GET" -apiSecret "parentsecret" -apiKey "Parentkey" -requestparams @{account_id = "childAccountID"}
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Hopefully that helps!&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Jan 2022 12:56:00 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/list-users-for-all-child-accounts-via-accounts-api/m-p/4878933#M220</guid>
      <dc:creator>firstcolumn</dc:creator>
      <dc:date>2022-01-12T12:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: List users for all Child accounts via Accounts API</title>
      <link>https://community.cisco.com/t5/apis/list-users-for-all-child-accounts-via-accounts-api/m-p/4878934#M221</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Thank you very much!!! This was the solution. I tried passing the &lt;STRONG&gt;account_id&lt;/STRONG&gt; as an extra header but it has to be in the body.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 12 Jan 2022 13:13:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/list-users-for-all-child-accounts-via-accounts-api/m-p/4878934#M221</guid>
      <dc:creator>me1299</dc:creator>
      <dc:date>2022-01-12T13:13:26Z</dc:date>
    </item>
  </channel>
</rss>

