Hi Team, I'm working with one of our customers to limit permission to ONTAP user account for managing Ansible playbooks. We create a custom role and user limiting permissions to needed API endpoints and tested it in lab with 9.11.1 and it worked successfully.
cluster2::> security login role show ansible_role
Role Command/ Access
Vserver Name Directory Query Level
cluster2 ansible_role DEFAULT none
cluster modify readonly
cluster show readonly
snapmirror all
vserver create readonly
vserver modify readonly
vserver show readonly
7 entries were displayed.
cluster2::> security login create -user-or-group-name ansible -role ansible_role -application http -authentication-method password
Please enter a password for user 'ansible':
Please enter it again:
cluster2::>
But this not working with ONTAP 9.10.1 for customer. And we tested in lab with 9.10.1 and we had the same issue.
{"error":{"code":"6691623", "message":"User is not authorized."}}
Could you please help why it's not working with 9.10.1?