Hi Rob,
You can get this done via role creation on vserver level.
I created a testrole with the following abilities.
cmemile01::vserver security> security login role show -vserver data_svm -role testrole
Role Command/ Access
Vserver Name Directory Query Level
---------- ------------- --------- ----------------------------------- --------
data_svm testrole DEFAULT none
data_svm testrole network all
data_svm testrole snapmirror all
data_svm testrole volume readonly
When I go to vserver context and login with my user which was assigned the "testrole" the "volume size" command is not available.
cmemile01::vserver security> vserver context -username emile -vserver data_svm
Info: Use 'exit' command to return.
data_svm::> volume ?
clone> Manage FlexClones
efficiency> Manage volume efficiency
file> File related commands
qtree> Manage qtrees
quota> Manage Quotas, Policies, Rules and Reports
show Display a list of volumes
show-footprint Display a list of volumes and their data and metadata footprints in their associated aggregate.
show-space Display space usage for volume(s)
snapshot> Manage snapshots
data_svm::> volume size
Error: "size" is not a recognized command
Is this what you are trying to achieve?
Regards
Emile