API key Permissions modification

Looking for some guidance so I can understand how this is suppose to function. I recently created an API key for a user for a specific function. I was getting odd results were some actions were working and some were not. I modified the users permissions and retried but still recieved an error. Audit log shows I am Authenticated but not Authorized. I reset my API key and all of sudden it seems to work and we are authorized.

So my question is, if I change permissions/roles then do I need to regenerate the key to use the updated permission/role?

What truenas version are you using?

Apologies. I am using 25.10.7 - Goldeye.

For clarity here is exactly what I did. I have been attempting to use the TrueNAS-Proxmox plugin and followed the directions as documented. I ran a diagnostic test and it was able to create a VM and add the necessary disk to the VM. Then when it tried to snapshot I got a Not Authorized error message. I changed my API account to Full Admin and this didn’t work. I went back and updated the dataset’s permission to that of my API user and that didn’t seem to work. After reading some github issues with similar errors I decided to reset my API key and suddenly everything started working. So I am unclear if my API key is tied to the permsions/ownership at time of creation which would mean I would need to update the key anytime I made a change to permissions or account roles. I don’t know if this is by design or a bug or I am just interpertting it that way.