<?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: Loading user and netgroup files in ONTAP Discussions</title>
    <link>https://community.netapp.com/t5/ONTAP-Discussions/Loading-user-and-netgroup-files/m-p/457793#M44544</link>
    <description>&lt;P&gt;Hi there! There is an API endpoint, detailed at&amp;nbsp;&lt;A href="https://docs.netapp.com/us-en/ontap-restapi/ontap/name-services_unix-users_endpoint_overview.html#creating-a-unix-user-configuration-with-all-fields-specified" target="_blank"&gt;https://docs.netapp.com/us-en/ontap-restapi/ontap/name-services_unix-users_endpoint_overview.html#creating-a-unix-user-configuration-with-all-fields-specified &lt;/A&gt;- however it looks like you'd need to develop something to retrieve a list of users and then update/delete as necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option would be to just CLI passthrough to the same command you're using now -&amp;nbsp;&lt;A href="https://docs.netapp.com/us-en/ontap-restapi//ontap/getting_started_with_the_ontap_rest_api.html#Tagging_Resources_for_Tracking_Purposes:~:text=4d37%2D8150%2D87ee15983696%22-,Using%20the%20private%20CLI%20passthrough%20with%20the%20ONTAP%20REST%20API,-REST%20API%20access" target="_blank"&gt;https://docs.netapp.com/us-en/ontap-restapi//ontap/getting_started_with_the_ontap_rest_api.html#Tagging_Resources_for_Tracking_Purposes:~:text=4d37%2D8150%2D87ee15983696%22-,Using%20the%20private%20CLI%20passthrough%20with%20the%20ONTAP%20REST%20API,-REST%20API%20access&lt;/A&gt;&amp;nbsp;- but it is not the recommended way to do things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And finally, the most old-school way would be to setup SSH key authentication and run the command whenever the passwd/group file is detected as updated -&amp;nbsp;&lt;A href="https://docs.netapp.com/us-en/ontap/system-admin/access-cluster-ssh-task.html" target="_blank"&gt;https://docs.netapp.com/us-en/ontap/system-admin/access-cluster-ssh-task.html &lt;/A&gt;- but there are security risks inherent here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jan 2025 08:14:26 GMT</pubDate>
    <dc:creator>AlexDawson</dc:creator>
    <dc:date>2025-01-10T08:14:26Z</dc:date>
    <item>
      <title>Loading user and netgroup files</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Loading-user-and-netgroup-files/m-p/457781#M44540</link>
      <description>&lt;P&gt;We utilize an authentication source that produces passwd and netgroup files for unix based authentication.&amp;nbsp; &amp;nbsp;We are currently manually importing the files via the following commands from the ontapp console:&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;vserver services name-service unix-user load-from-uri -vserver &amp;lt;vserver&amp;gt; -uri &amp;lt;path to file&amp;gt;&lt;BR /&gt;vserver services name-service unix-group load-from-uri -vserver &amp;lt;vserver&amp;gt; -uri&amp;nbsp;&amp;lt;path to file&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would like to automate this process in some form, but so far I have not been able to comeup with a solution.&amp;nbsp; &amp;nbsp;Looking for any thoughts.&amp;nbsp; REST, local scripts that can be scheduled...etc.....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jan 2025 16:01:29 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Loading-user-and-netgroup-files/m-p/457781#M44540</guid>
      <dc:creator>trever417</dc:creator>
      <dc:date>2025-01-09T16:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: Loading user and netgroup files</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Loading-user-and-netgroup-files/m-p/457793#M44544</link>
      <description>&lt;P&gt;Hi there! There is an API endpoint, detailed at&amp;nbsp;&lt;A href="https://docs.netapp.com/us-en/ontap-restapi/ontap/name-services_unix-users_endpoint_overview.html#creating-a-unix-user-configuration-with-all-fields-specified" target="_blank"&gt;https://docs.netapp.com/us-en/ontap-restapi/ontap/name-services_unix-users_endpoint_overview.html#creating-a-unix-user-configuration-with-all-fields-specified &lt;/A&gt;- however it looks like you'd need to develop something to retrieve a list of users and then update/delete as necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another option would be to just CLI passthrough to the same command you're using now -&amp;nbsp;&lt;A href="https://docs.netapp.com/us-en/ontap-restapi//ontap/getting_started_with_the_ontap_rest_api.html#Tagging_Resources_for_Tracking_Purposes:~:text=4d37%2D8150%2D87ee15983696%22-,Using%20the%20private%20CLI%20passthrough%20with%20the%20ONTAP%20REST%20API,-REST%20API%20access" target="_blank"&gt;https://docs.netapp.com/us-en/ontap-restapi//ontap/getting_started_with_the_ontap_rest_api.html#Tagging_Resources_for_Tracking_Purposes:~:text=4d37%2D8150%2D87ee15983696%22-,Using%20the%20private%20CLI%20passthrough%20with%20the%20ONTAP%20REST%20API,-REST%20API%20access&lt;/A&gt;&amp;nbsp;- but it is not the recommended way to do things.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And finally, the most old-school way would be to setup SSH key authentication and run the command whenever the passwd/group file is detected as updated -&amp;nbsp;&lt;A href="https://docs.netapp.com/us-en/ontap/system-admin/access-cluster-ssh-task.html" target="_blank"&gt;https://docs.netapp.com/us-en/ontap/system-admin/access-cluster-ssh-task.html &lt;/A&gt;- but there are security risks inherent here&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 08:14:26 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Loading-user-and-netgroup-files/m-p/457793#M44544</guid>
      <dc:creator>AlexDawson</dc:creator>
      <dc:date>2025-01-10T08:14:26Z</dc:date>
    </item>
    <item>
      <title>Re: Loading user and netgroup files</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Loading-user-and-netgroup-files/m-p/457801#M44546</link>
      <description>&lt;P&gt;Thank you for the information. I should have been a little more discriptive.&amp;nbsp; We are not using local accounts, but loading them from a file:&amp;nbsp;&lt;/P&gt;&lt;P&gt;Option 1:&amp;nbsp; API Endpoint:&amp;nbsp; Call:&amp;nbsp;&lt;A href="https://XXX/api/name-services/unix-users/" target="_blank"&gt;https://XXX/api/name-services/unix-users/&lt;/A&gt;&amp;lt;UID of SVM&amp;gt;&lt;/P&gt;&lt;P&gt;Returns:&amp;nbsp;&lt;/P&gt;&lt;P&gt;"error": {&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "message": "Cannot display the UNIX users because file-only configuration is enabled. Use the CLI to view the UNIX user file.",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; "code": "1264685"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; }&lt;BR /&gt;B: CLI passthough.&amp;nbsp; Same thing, no opttion for the file loaded users:&amp;nbsp; error:&amp;nbsp;&lt;BR /&gt;Cannot display the UNIX users because file-only configuration is enabled.&amp;nbsp; "Use the CLI to view the UNIX user file"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Looks like Passthrough might be the only option.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jan 2025 14:17:06 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Loading-user-and-netgroup-files/m-p/457801#M44546</guid>
      <dc:creator>trever417</dc:creator>
      <dc:date>2025-01-10T14:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Loading user and netgroup files</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Loading-user-and-netgroup-files/m-p/457817#M44551</link>
      <description>&lt;P&gt;Quite likely. Or you could look at setting up NIS or NIS+.. although it's now 2025 and I can't believe I'm suggesting that &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 03:03:19 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Loading-user-and-netgroup-files/m-p/457817#M44551</guid>
      <dc:creator>AlexDawson</dc:creator>
      <dc:date>2025-01-13T03:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Loading user and netgroup files</title>
      <link>https://community.netapp.com/t5/ONTAP-Discussions/Loading-user-and-netgroup-files/m-p/457824#M44555</link>
      <description>&lt;P&gt;I agree, our security department went back in time on an authentication provider.&amp;nbsp; &amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jan 2025 12:47:40 GMT</pubDate>
      <guid>https://community.netapp.com/t5/ONTAP-Discussions/Loading-user-and-netgroup-files/m-p/457824#M44555</guid>
      <dc:creator>trever417</dc:creator>
      <dc:date>2025-01-13T12:47:40Z</dc:date>
    </item>
  </channel>
</rss>

