Add permissions to cloned role using REST API Explorer

  • 4 October 2021
  • 1 reply

Good morning; not sure if this is the right place to ask. Have cloned the “Super Admin” role via the UI and this only transfers partial permissions. Following Nutanix KB article: 00006224, dated: 8th Apr 2020 …

It says we need to use REST API Explorer. I have extracted all the permissions from the default SA role, and created the JSON to ‘PUT’ these permissions into the cloned role but this is not working and I get a response code 422 and "'name' is a required property"

Does anyone have some sample code that actually works that I can compare to?

My code looks like this (example)


  "spec": {
    "name": "<cloned role name here>",
    "resources": {
       "permission_reference_list": [
              "kind": "permission",
              "name": "Snapshot_Virtual_Machine",
              "uuid": "<uuid here>"

             <repeated, repeated, repeated!!>

     "metadata": {
       "kind": "role",
       "spec_version": 1
     "api_version": "3.1.0"

Thanks in advance if someone can point me in the right direction.


1 reply

Userlevel 6
Badge +16

This link should provide you with everything you need to work with Nutanix API: