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
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!