You can use queries with the role create/modify command to do this. For example,
cluster::> security login role create -role testrole -vserver <vservername> -access all -cmddirname "volume snapshot" -query "-volume *abc*|nfs*"
this command will create a role that lets the user access snapshots only for volumes with names starting with "nfs" or volumes with the pattern "abc" somewhere in thier names.
Hope you understood.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO. Cannot find the answer you need? No need to open a support case - just CHAT and we’ll handle it for you.