# Missing required arguments: command\_directory\_name

**URL:** <https://forum.ansible.com/t/missing-required-arguments-command-directory-name/43077>\
**Category:** Get Help\
**Tags:** awx, netapp\
**Created:** [May 30, 2025, 6:06am UTC](https://forum.ansible.com/t/missing-required-arguments-command-directory-name/43077 "2025-05-30T06:06:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![marshit](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@marshit](https://forum.ansible.com/u/marshit)\
**Post date:** [May 30, 2025, 6:06am UTC](https://forum.ansible.com/t/missing-required-arguments-command-directory-name/43077/1 "2025-05-30T06:06:01Z")

</div>

I’m trying to create a user and role using REST\_API, and I’m running 9.15.x and keep receiving the following error when running the playbook: localhost]: FAILED! =\> {“changed”: false, “msg”: “missing required arguments: command\_directory\_name”} Why am I receiving this error if I’m only trying to apply REST and the error above is only valid for ZAPI? I’m only providing a snippet of the playbook since I’m sure you don’t want the entire playbook posted here.

I have shortened the playbook as much as possible, and I still receive that error even if I only apply “/api” to just give the user all REST permissions, but still the same error.  
I’m using netapp.ontap version 22.13.0.

I’m under the impression, Even with valid REST `path` values, the `na_ontap_user_role` module from the `netapp.ontap` collection:

**Still defaults to ZAPI transport internally** unless the module detects REST support _at both the module level and the ONTAP endpoint_ — which is flaky.

**This seems like a bug to me but maybe it’s fixed in a newer module?**

The paths all look fine to me:

```auto
 privileges:
          - path: /api/storage/volumes
            access: all
          - path: /api/storage/luns
            access: all
          - path: /api/protocols/nfs/export-policies
        https: true
        validate_certs: false
        use_rest: always

```

I was trying to use the following:

```auto
/api/storage/volumes
/api/storage/luns
/api/protocols/nfs/export-policies
/api/protocols/cifs/shares
/api/network/ip/interfaces
/api/svm/svms
/api/storage/aggregates
/api/cluster
/api/storage/qtrees
/api/storage/quota/rules
/api/security/accounts
/api/security/certificates
/api/snapmirror/relationships
/api/snapmirror/policies
/api/cluster/software
/api/cluster/software/history
/api/storage/volumes/snapshots
/api/network/ip/
/api/svm/

```

UPDATE: I updated the NetApp module to 23.0.0 and still having the same problem.
