I have created a basic script in the manager and I call it with a TACP-15 tacacs user from my windows desktop. It works.
Now, I would like to use an user in TACP-1 with as little permission as possible to run the same script. Any idea?
The number of features at the tacacs configuration at the cli is huge. It is difficult to find out what exactly I need.
I have tried to do the same from the script repository in SmartConsole but you need a superuser there.
I guess that I may need to go down the route of using ansible of something like that to control access to these scripts.
The user case is to allow a team to add ips to an existent group and nothing else.
Tacacs config
add rba role TACP-15 domain-type System all-features
Call from my windows desktop
mgmt_cli.exe run-script -m manager1 script-name "show group" script "/home/_nonlocl/add_host.sh $1" args "1.1.1.1" targets manager1
Script
/usr/local/bin/add_host.sh
file=/usr/local/bin/sid.txt
mgmt_cli -r true login > $file
mgmt_cli -r true -s $file set session new-name $1 description $1
mgmt_cli -r true -s $file add host name $1 ip-address $1
mgmt_cli -r true -s $file set group name Internet members.add $1
mgmt_cli -r true -s $file publish
mgmt_cli -r true -s $file install-policy policy-package test1 targets cluster1
mgmt_cli -r true -s $file logout