Hello,
I created a new user, added them to a new group, created a new resource pool, added an LXC to that resource pool, and then gave the new group the
My theory is that now the user should be able to clone that LXC using the API key because they are a member of the group that has the
However, when I invoke the API with
I created a new user, added them to a new group, created a new resource pool, added an LXC to that resource pool, and then gave the new group the
PVETemplateUser role in that resource pool. I then created an API key for the new user (without privilege separation, such that the key would get the full user experience!).My theory is that now the user should be able to clone that LXC using the API key because they are a member of the group that has the
PVETemplateUser role in the context of the resource pool.However, when I invoke the API with
curl, I get an error about a missing VM.Clone permission:
Code:
curl -X POST -H 'Authorization: PVEAPIToken=foo@realm!bar=88d8c20b-382e-11f1-a245-dcfb48350304' -H "Content-Type: application/json" https://pve.example.org/api2/json/nodes/pve/lxc/126/clone -d '{"description": "Cloned from original", "snapname": "test"}'
{"message":"Permission check failed (/vms/126, VM.Clone)\n","data":null}
VM.Clone is part of PVETemplateUser so why is PVE complaining that it's missing?
Last edited: