Assign A Role to API token

NetRock

Renowned Member
Apr 23, 2015
78
1
71
Hi,

After generating an API token using a bash script, I have to assign the role DatastoreAdmin for the root@pam user for a specific datastore in PBS 3.2. In my script, I can generate the token, but I can't assign the role. Could someone maybe assist me in demonstrating how to use a bash script to give the newly created API token a role? (Avoiding the use of the GUI)
 
what exactly did you try?

Code:
proxmox-backup-manager acl update
takes an 'auth-id' parameter that can also be a token

just be careful to single quote it, because the '!' has special meaning in bash