Skip to main content
NetApp Knowledge Base

What documentation can help set up RBAC based policies and admins

Views:
53
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
CORE
Last Updated:

Applies to

  • ONTAP 9
  • role-based access control (RBAC)
  • Export policies

Answer

1.  Specify command directories and set appropriate access levels:

Example:

cluster::> securitylogin role create -role admin_role -cmddirname DEFAULT -access none -vserversvm1
cluster::> security login role create -role admin_role -cmddirname"vserver" -access all -vserver svm1
cluster::> security login role create -role admin_role -cmddirname"network" -access all -vserver svm1
cluster::> security login role create -role admin_role -cmddirname"system" -access all -vserver svm1
cluster::> security login role create -role admin_role -cmddirname"cluster" -access all -vserver svm1

  • To restrict access to data, you may want todeny access to data-related command directories such as volume, file, and snapshot.

Example:
cluster::> securitylogin role create -role admin_role -cmddirname "volume" -access none-vserver svm1
cluster::> security login role create -role admin_role -cmddirname"file" -access none -vserver svm1
cluster::> security login role create -role admin_role -cmddirname"snapshot" -access none -vserver svm1

  1. After creating custom roles,  create a user and assign the role to the user:

Ensure that the role and user are configured correctly by listing the roles and checking access levels:

Example:

cluster::> securitylogin role show -vserver svm1 -role admin_role

cluster::> security login show -vserver svm1 -user-or-group-name admin_user

 

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.