<?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: User who has not enrolled in APIs</title>
    <link>https://community.cisco.com/t5/apis/user-who-has-not-enrolled/m-p/4881124#M341</link>
    <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Hey there, when you describe your API use case are you conflating “enrollment” with “activation”? Admin API’s &lt;A href="https://duo.com/docs/adminapi#enroll-user"&gt;enroll user&lt;/A&gt; endpoint can only email an enrollment link, not send one via SMS.&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://duo.com/docs/adminapi#send-activation-code-via-sms"&gt;activate phone&lt;/A&gt;  endpoint sends the activation info to a specified phone attached to an enrolled user. A user who isn’t fully “enrolled” has no phone, so there is no phone number available to be returned as an SMS destination by the API on user GET.&lt;/P&gt;
&lt;P&gt;Maybe in this workflow you should actually look for users returned by the API with an email but no phone attached, and use &lt;CODE&gt;/admin/v1/users/enroll&lt;/CODE&gt; to email them an enrollment link?&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Wed, 04 Mar 2020 20:33:22 GMT</pubDate>
    <dc:creator>DuoKristina</dc:creator>
    <dc:date>2020-03-04T20:33:22Z</dc:date>
    <item>
      <title>User who has not enrolled</title>
      <link>https://community.cisco.com/t5/apis/user-who-has-not-enrolled/m-p/4881123#M340</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;I have a python script basic function is to pull down user data, see if they enrolled and help the helpdesk enroll the user via SMS if they had problems.&lt;/P&gt;
&lt;P&gt;My issue is I have a user who is in the system and part of group - they never enrolled just sitting idle. when I search up the user name via API I get empty data back because the user isnt enrolled? but works fine for any enrolled user.&lt;/P&gt;
&lt;P&gt;there is a email in the dashboard web-ui but when I pull it via API there is no data returned?&lt;/P&gt;
&lt;P&gt;is there some other API command I need to set to a username before I can enroll them? if I use the web-ui and add a phone to the account I can use my script no issues.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Mar 2020 18:30:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/user-who-has-not-enrolled/m-p/4881123#M340</guid>
      <dc:creator>SpudGunMan</dc:creator>
      <dc:date>2020-03-04T18:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: User who has not enrolled</title>
      <link>https://community.cisco.com/t5/apis/user-who-has-not-enrolled/m-p/4881124#M341</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;Hey there, when you describe your API use case are you conflating “enrollment” with “activation”? Admin API’s &lt;A href="https://duo.com/docs/adminapi#enroll-user"&gt;enroll user&lt;/A&gt; endpoint can only email an enrollment link, not send one via SMS.&lt;/P&gt;
&lt;P&gt;The &lt;A href="https://duo.com/docs/adminapi#send-activation-code-via-sms"&gt;activate phone&lt;/A&gt;  endpoint sends the activation info to a specified phone attached to an enrolled user. A user who isn’t fully “enrolled” has no phone, so there is no phone number available to be returned as an SMS destination by the API on user GET.&lt;/P&gt;
&lt;P&gt;Maybe in this workflow you should actually look for users returned by the API with an email but no phone attached, and use &lt;CODE&gt;/admin/v1/users/enroll&lt;/CODE&gt; to email them an enrollment link?&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Mar 2020 20:33:22 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/user-who-has-not-enrolled/m-p/4881124#M341</guid>
      <dc:creator>DuoKristina</dc:creator>
      <dc:date>2020-03-04T20:33:22Z</dc:date>
    </item>
    <item>
      <title>Re: User who has not enrolled</title>
      <link>https://community.cisco.com/t5/apis/user-who-has-not-enrolled/m-p/4881125#M342</link>
      <description>&lt;DIV class="duo-migrated-content"&gt;&lt;P&gt;I think I found my issue was when I was assigning data from JSON into an array I was calling the email wrong…&lt;/P&gt;
&lt;P&gt;everything seems to be ok now &lt;IMG width="20" height="20" src="https://community.cisco.com/legacyfs/online/ciscoduo/cdn_emojis/twitter/slight_smile.png" style="display : inline;" /&gt; thanks for feedback it helped me in the right direction.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 04 Mar 2020 21:17:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/apis/user-who-has-not-enrolled/m-p/4881125#M342</guid>
      <dc:creator>SpudGunMan</dc:creator>
      <dc:date>2020-03-04T21:17:25Z</dc:date>
    </item>
  </channel>
</rss>

