snap restore command failed with "not authorized for that command"
Applies to
- ONTAP 9
- Security login role
Issue
volume snapshot restore
command fails when user role has multiple SVMs specified in a Query:
::> volume snapshot restore -volume vol_1 -vserver svm_2 -snapshot snap_2
Error: command failed: not authorized for that command
- Role:
::> security login role show -role snap_admin Role Command/ Access
Vserver Name Directory Query Level
---------- ------------- --------- -------------------------------------- --------
cluster_1 snap_admin DEFAULT none
volume snapshot -vserver svm_2|svm_3 all