<?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: Dedicated user for APIs in Network Devices</title>
    <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967513#M427</link>
    <description>&lt;P&gt;Thanks, that sounds promising.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Though how do you push your code ? Through Postman ? But I don't know what URL to use to PUT or even just GET.&lt;BR /&gt;&lt;BR /&gt;I defined the application to XML but Postman send me back 400 Bad Request.&lt;/P&gt;
&lt;P&gt;I didn't find any documentation regarding edition of NACM settings, do you have any ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nicolas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2023 14:28:48 GMT</pubDate>
    <dc:creator>NIRO-7</dc:creator>
    <dc:date>2023-11-28T14:28:48Z</dc:date>
    <item>
      <title>Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967281#M423</link>
      <description>&lt;P&gt;Good morning everyone,&lt;/P&gt;
&lt;P&gt;I am currently trying to dig an API approach on a 9800-CL, to create Guest Users through API.&lt;/P&gt;
&lt;P&gt;I tried with my admin user, everything works correctly, the customer is satisfied of the firsts tries and we are going deep in this way.&lt;/P&gt;
&lt;P&gt;But I would like to use a dedicated account to send API requests to the 9800, by example "API-User".&lt;/P&gt;
&lt;P&gt;I thought of a customized privilege account, 10 by exemple, to whom I'll grant access to a certain set of commands.&lt;/P&gt;
&lt;P&gt;I tried to log in through CLI and it works fine, but when I use Postman, I get a 403 Forbidden error, and if I use a privilege 15 account, it works.&lt;/P&gt;
&lt;P&gt;Fun fact : when I try a GET request with Postman, it says Access Denied, but the logs on the WLC says : DMI-5-AUTH_PASSED: Chassis 1 R0/0: dmiauthd: User 'API' authenticated successfully from 192.168.69.8:0 and was authorized for rest over http. External groups: PRIV10&lt;/P&gt;
&lt;P&gt;In the Programmability Configuration Guide, chapter 13, this statement is made : "Upon enabling the NETCONF and/or RESTCONF services, a device that has no prior configuration of the&lt;BR /&gt;/nacm subtree will deny read, write, and execute access to all operations and data other than the users of&lt;BR /&gt;privilege level 15."&lt;/P&gt;
&lt;P&gt;Therefore, I was wondering if it was possible to edit the NACM configuration that could allow privilege level 10 users to access operations through API.&lt;/P&gt;
&lt;P&gt;Is there someone that faced the same issue ?&lt;/P&gt;
&lt;P&gt;I hope that I could explain it clearly and that it's not impossible.&lt;/P&gt;
&lt;P&gt;Thank you for your help.&lt;/P&gt;
&lt;P&gt;Have a nice day.&lt;BR /&gt;Nicolas.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 08:44:23 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967281#M423</guid>
      <dc:creator>NIRO-7</dc:creator>
      <dc:date>2023-11-28T08:44:23Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967331#M424</link>
      <description>&lt;P&gt;&lt;EM&gt;Therefore, I was wondering if it was possible to edit the NACM configuration that could allow privilege level 10 users to access operations through API.&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Yes, it should be possible to edit NACM accordingly. Level 10 users match to the NACM group name "&lt;SPAN&gt;PRIV10&lt;/SPAN&gt;". You'll find configuration examples in the Model Based AAA chapter of the guide:&amp;nbsp;&lt;A href="https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/176/b_176_programmability_cg/m_176_prog_model_based_aaa.html" target="_blank"&gt;https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/176/b_176_programmability_cg/m_176_prog_model_based_aaa.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 10:08:16 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967331#M424</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-11-28T10:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967353#M425</link>
      <description>&lt;P&gt;Thanks Marcel, indeed I saw this but I don't know how to configure the NACM subtree, do you know how it's done ?&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 10:43:26 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967353#M425</guid>
      <dc:creator>NIRO-7</dc:creator>
      <dc:date>2023-11-28T10:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967410#M426</link>
      <description>&lt;P&gt;You can edit the rule-list via NETCONF edit-config (with merge).&lt;BR /&gt;The default NACM config looks like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;nacm xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-acm"&amp;gt;
  &amp;lt;enable-nacm&amp;gt;true&amp;lt;/enable-nacm&amp;gt;
  &amp;lt;read-default&amp;gt;deny&amp;lt;/read-default&amp;gt;
  &amp;lt;write-default&amp;gt;deny&amp;lt;/write-default&amp;gt;
  &amp;lt;exec-default&amp;gt;deny&amp;lt;/exec-default&amp;gt;
  &amp;lt;enable-external-groups&amp;gt;true&amp;lt;/enable-external-groups&amp;gt;
  &amp;lt;rule-list&amp;gt;
    &amp;lt;name&amp;gt;admin&amp;lt;/name&amp;gt;
    &amp;lt;group&amp;gt;PRIV15&amp;lt;/group&amp;gt;
    &amp;lt;rule&amp;gt;
      &amp;lt;name&amp;gt;permit-all&amp;lt;/name&amp;gt;
      &amp;lt;module-name&amp;gt;*&amp;lt;/module-name&amp;gt;
      &amp;lt;access-operations&amp;gt;*&amp;lt;/access-operations&amp;gt;
      &amp;lt;action&amp;gt;permit&amp;lt;/action&amp;gt;
    &amp;lt;/rule&amp;gt;
  &amp;lt;/rule-list&amp;gt;
&amp;lt;/nacm&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;To add full access for privilege users with level 10 you need to send the following config via NETCONF to the device:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;nacm xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-acm"&amp;gt;
        &amp;lt;rule-list xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:operation="merge"&amp;gt;
          &amp;lt;name&amp;gt;priv10-access&amp;lt;/name&amp;gt;
          &amp;lt;group&amp;gt;PRIV10&amp;lt;/group&amp;gt;
          &amp;lt;rule&amp;gt;
            &amp;lt;name&amp;gt;permit-all&amp;lt;/name&amp;gt;
            &amp;lt;module-name&amp;gt;*&amp;lt;/module-name&amp;gt;
            &amp;lt;access-operations&amp;gt;*&amp;lt;/access-operations&amp;gt;
            &amp;lt;action&amp;gt;permit&amp;lt;/action&amp;gt;
          &amp;lt;/rule&amp;gt;
        &amp;lt;/rule-list&amp;gt;
      &amp;lt;/nacm&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;This will result in this new NACM configuration:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;nacm xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-acm"&amp;gt;
      &amp;lt;rule-list&amp;gt;
        &amp;lt;name&amp;gt;admin&amp;lt;/name&amp;gt;
        &amp;lt;group&amp;gt;PRIV15&amp;lt;/group&amp;gt;
        &amp;lt;rule&amp;gt;
          &amp;lt;name&amp;gt;permit-all&amp;lt;/name&amp;gt;
          &amp;lt;module-name&amp;gt;*&amp;lt;/module-name&amp;gt;
          &amp;lt;access-operations&amp;gt;*&amp;lt;/access-operations&amp;gt;
          &amp;lt;action&amp;gt;permit&amp;lt;/action&amp;gt;
        &amp;lt;/rule&amp;gt;
      &amp;lt;/rule-list&amp;gt;
      &amp;lt;rule-list&amp;gt;
        &amp;lt;name&amp;gt;priv10-access&amp;lt;/name&amp;gt;
        &amp;lt;group&amp;gt;PRIV10&amp;lt;/group&amp;gt;
        &amp;lt;rule&amp;gt;
          &amp;lt;name&amp;gt;permit-all&amp;lt;/name&amp;gt;
          &amp;lt;module-name&amp;gt;*&amp;lt;/module-name&amp;gt;
          &amp;lt;access-operations&amp;gt;*&amp;lt;/access-operations&amp;gt;
          &amp;lt;action&amp;gt;permit&amp;lt;/action&amp;gt;
        &amp;lt;/rule&amp;gt;
      &amp;lt;/rule-list&amp;gt;
    &amp;lt;/nacm&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;For your usecase you probably want to limit the priv 10 access to a certain module (whichever one is needed to create the guest-user):&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;      &amp;lt;nacm xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-acm"&amp;gt;
        &amp;lt;rule-list xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" nc:operation="merge"&amp;gt;
          &amp;lt;name&amp;gt;priv10-access&amp;lt;/name&amp;gt;
          &amp;lt;group&amp;gt;PRIV10&amp;lt;/group&amp;gt;
          &amp;lt;rule&amp;gt;
            &amp;lt;name&amp;gt;permit-all&amp;lt;/name&amp;gt;
            &amp;lt;module-name&amp;gt;NAME-OF-MODULE&amp;lt;/module-name&amp;gt;
            &amp;lt;access-operations&amp;gt;*&amp;lt;/access-operations&amp;gt;
            &amp;lt;action&amp;gt;permit&amp;lt;/action&amp;gt;
          &amp;lt;/rule&amp;gt;
        &amp;lt;/rule-list&amp;gt;
      &amp;lt;/nacm&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;HTH&lt;BR /&gt;Marcel&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 12:24:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967410#M426</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-11-28T12:24:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967513#M427</link>
      <description>&lt;P&gt;Thanks, that sounds promising.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Though how do you push your code ? Through Postman ? But I don't know what URL to use to PUT or even just GET.&lt;BR /&gt;&lt;BR /&gt;I defined the application to XML but Postman send me back 400 Bad Request.&lt;/P&gt;
&lt;P&gt;I didn't find any documentation regarding edition of NACM settings, do you have any ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nicolas&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 14:28:48 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967513#M427</guid>
      <dc:creator>NIRO-7</dc:creator>
      <dc:date>2023-11-28T14:28:48Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967542#M428</link>
      <description>&lt;P&gt;My example is NETCONF payload, a handy tool to deal with NETCONF is yangsuite (&lt;A href="https://github.com/CiscoDevNet/yangsuite)" target="_blank"&gt;https://github.com/CiscoDevNet/yangsuite)&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;However, if you're more familiar with RESTCONF, you can post the payload using POSTMAN:&lt;/P&gt;
&lt;P&gt;URL:&amp;nbsp;&lt;SPAN data-offset-key="epf4-0-0"&gt;https://&lt;/SPAN&gt;&lt;SPAN class="resolvedVariable" data-testid="resolvedVariable"&gt;&lt;SPAN data-offset-key="epf4-1-0"&gt;{{YOUR-XE-DEVICE}}&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN data-offset-key="epf4-2-0"&gt;/restconf/data/ietf-netconf-acm:nacm/rule-list&lt;BR /&gt;Method: PATCH&lt;BR /&gt;Headers: Content-Type: application/yang-data+json, Accept:&amp;nbsp;application/yang-data+json&lt;BR /&gt;Payload (Body):&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;LI-CODE lang="javascript"&gt;{
    "rule-list": [
        {
            "name": "priv10-access",
            "group": [
                "PRIV10"
            ],
            "rule": [
                {
                    "name": "permit-all",
                    "module-name": "*",
                    "access-operations": "*",
                    "action": "permit"
                }
            ]
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;&lt;SPAN data-offset-key="epf4-2-0"&gt;HTH&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 15:05:03 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967542#M428</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-11-28T15:05:03Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967626#M429</link>
      <description>&lt;P&gt;Yes use the API NETCONF/RESTCONF or gNMI API to edit the NACM module like discussed above.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are also 2 CLI you can use it to populate a read-only example and specify the privilege level (in your example prove 10 in my example I use priv1)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Config Guide:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/176/b_176_programmability_cg/m_176_prog_model_based_aaa.html" target="_blank"&gt;https://www.cisco.com/c/en/us/td/docs/ios-xml/ios/prog/configuration/176/b_176_programmability_cg/m_176_prog_model_based_aaa.html&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CLI to populate NACM with Read Only rules: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;request platform software yang-management &lt;/SPAN&gt;&lt;SPAN&gt;nacm&lt;/SPAN&gt;&lt;SPAN&gt; populate-read-rules privilege 1&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;CLI to reset ACM: &lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;request platform software yang-management &lt;/SPAN&gt;&lt;SPAN&gt;nacm&lt;/SPAN&gt;&lt;SPAN&gt; reset-config&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jeremy&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 17:04:14 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967626#M429</guid>
      <dc:creator>jcohoe</dc:creator>
      <dc:date>2023-11-28T17:04:14Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967643#M430</link>
      <description>&lt;P&gt;That's exactly what I needed, but I'm not at ease with APIs and development, but I'd like to know if Cisco has a guide for configuring this or if it's because you're used to doing DevNet ?&lt;/P&gt;
&lt;P&gt;Thanks a lot, I did the PATCH with Postman and it works just fine.&lt;/P&gt;
&lt;P&gt;I think now I will tweak my Privilege 10 account !&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 17:27:29 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967643#M430</guid>
      <dc:creator>NIRO-7</dc:creator>
      <dc:date>2023-11-28T17:27:29Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967644#M431</link>
      <description>&lt;P&gt;I did find this, but I needed to get Write access for my Priv 10 account.&lt;/P&gt;
&lt;P&gt;What is complicated is to know what URL use in postman to do the desirated thing on the WLC.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2023 17:29:25 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4967644#M431</guid>
      <dc:creator>NIRO-7</dc:creator>
      <dc:date>2023-11-28T17:29:25Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971534#M432</link>
      <description>&lt;P&gt;Hello again,&lt;/P&gt;
&lt;P&gt;I come back because while trying to limit actions for my Priv10 account, I found that it works fine in CLI but with the NACM settings set as previously said, it's a permit all, which means that my PRIV10 account has the same rights as a PRIV15, therefore there is no point to create a PRIV10.&lt;/P&gt;
&lt;P&gt;I tried to put this conf with a patch :&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "rule-list": [
        {
            "name": "priv10-access",
            "group": [
                "PRIV10"
            ],
            "rule": [
                {
                    "name": "permit-user-name",
                    "module-name": "user-name",
                    "access-operations": "*",
                    "action": "permit"
                }
            ]
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;But I got this in return :&amp;nbsp;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;SPAN&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;&lt;/SPAN&gt;&lt;SPAN&gt;"error-message"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"missing&amp;nbsp;element:&amp;nbsp;nacm&amp;nbsp;in&amp;nbsp;/nacm:nacm"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&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;&lt;/SPAN&gt;&lt;SPAN&gt;"error-path"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"/ietf-netconf-acm:nacm"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&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;&lt;/SPAN&gt;&lt;SPAN&gt;"error-tag"&lt;/SPAN&gt;&lt;SPAN&gt;:&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;"malformed-message"&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;I am reading this RFC&amp;nbsp;&lt;A href="https://datatracker.ietf.org/doc/html/rfc8341#appendix-A.2" target="_blank"&gt;https://datatracker.ietf.org/doc/html/rfc8341#appendix-A.2&lt;/A&gt;&amp;nbsp;but I feel like I can't do what I'm aiming to do.&lt;/P&gt;
&lt;P&gt;Does Cisco has a Documentation about modules and access-operations that we can edit ?&lt;/P&gt;
&lt;P&gt;Because I feel like I'm looking for something that's impossible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;With your DevNet and Cisco experience, do you think that it's possible ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Nicolas&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 10:02:55 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971534#M432</guid>
      <dc:creator>NIRO-7</dc:creator>
      <dc:date>2023-12-05T10:02:55Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971555#M433</link>
      <description>&lt;P&gt;Hi, you need to specify the module and path for the priv10 access in this case. So to give priv 10 users only access to the username path of the XE native module you would need something like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
    "rule-list": [
        {
            "name": "priv10-access-userconfig",
            "group": [
                "PRIV10"
            ],
            "rule": [
                {
                    "name": "permit-all-userconfig",
                    "module-name": "Cisco-IOS-XE-native",
                    "path": "/ios:native/ios:username",
                    "access-operations": "*",
                    "action": "permit"
                }
            ]
        }
    ]
}&lt;/LI-CODE&gt;
&lt;P&gt;HTH&lt;BR /&gt;Marcel&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 10:36:53 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971555#M433</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-12-05T10:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971565#M434</link>
      <description>&lt;P&gt;Thanks for the code, but where did you find the module-name and the path associated ? This is what I am looking for for the last 2 days...&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there a difference between username and user-name ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 10:46:21 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971565#M434</guid>
      <dc:creator>NIRO-7</dc:creator>
      <dc:date>2023-12-05T10:46:21Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971603#M435</link>
      <description>&lt;P&gt;I use&amp;nbsp;&lt;A href="https://yangcatalog.org/yang-search/module_details" target="_blank"&gt;https://yangcatalog.org/yang-search/module_details&lt;/A&gt;&amp;nbsp;or yangsuite (&lt;A href="https://github.com/CiscoDevNet/yangsuite)" target="_blank"&gt;https://github.com/CiscoDevNet/yangsuite)&lt;/A&gt;&amp;nbsp;for this.&lt;/P&gt;
&lt;P&gt;Not exactly sure whats the difference, but for your guest-user case, you most probably need the user-name path.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MarcelZehnder_0-1701776433843.png" style="width: 400px;"&gt;&lt;img src="https://community.cisco.com/t5/image/serverpage/image-id/204105iE67F47440969899E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MarcelZehnder_0-1701776433843.png" alt="MarcelZehnder_0-1701776433843.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 11:40:42 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971603#M435</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-12-05T11:40:42Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971681#M436</link>
      <description>&lt;P&gt;Thanks, I was using Yang Suite too, but I was not looking in the good module / repository.&lt;/P&gt;
&lt;P&gt;Could you advise me a guide to understand the structure and where to find items I need ?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I went on a wrong path and was trying to edit the NACM table &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 13:31:36 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971681#M436</guid>
      <dc:creator>NIRO-7</dc:creator>
      <dc:date>2023-12-05T13:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971720#M437</link>
      <description>&lt;P&gt;Well to find the right module is always a bit tricky - some hints:&lt;/P&gt;
&lt;P&gt;Regarding Cisco-IOS configuration: Cisco-IOS-XE-native is the module of choice in 90%. For operational data, search for the domain + -oper suffix (for example, if you're interested in BGP operational data, there is a model "&lt;SPAN&gt;Cisco-IOS-XE-bgp-oper&lt;/SPAN&gt;".&amp;nbsp; Also using Yangsuite, you can use the search-xpath function (Protocols --&amp;gt; NETCONF --&amp;gt; Select Module --&amp;gt; YANGtree --&amp;gt; Search xPath.&lt;BR /&gt;I'm not aware of a complete list of all modules with descriptions besides the github repo (&lt;A href="https://github.com/YangModels/yang/tree/main/vendor/cisco)" target="_blank" rel="noopener"&gt;https://github.com/YangModels/yang/tree/main/vendor/cisco)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;It takes some time to get familiar with the modules, but Yangsuite is definitely your friend.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 14:21:12 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971720#M437</guid>
      <dc:creator>Marcel Zehnder</dc:creator>
      <dc:date>2023-12-05T14:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Dedicated user for APIs</title>
      <link>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971791#M438</link>
      <description>&lt;P&gt;I'll keep this resources with me for further needs.&lt;/P&gt;
&lt;P&gt;Have a great day and thanks again for all these informations you gave !&lt;/P&gt;</description>
      <pubDate>Tue, 05 Dec 2023 15:45:28 GMT</pubDate>
      <guid>https://community.cisco.com/t5/network-devices/dedicated-user-for-apis/m-p/4971791#M438</guid>
      <dc:creator>NIRO-7</dc:creator>
      <dc:date>2023-12-05T15:45:28Z</dc:date>
    </item>
  </channel>
</rss>

