Configure RBAC roles with users and groups
Task Information : Grant edit to group dev-team in namespace payments, and grant view to user auditor1.
See the solution below in Explanation:
Create (or switch to) the project
oc new-project payments
Namespace must exist before applying rolebindings.
Grant edit to the group
oc -n payments policy add-role-to-group edit dev-team
Members of dev-team can modify most resources in payments.
Grant view to a user
oc -n payments policy add-role-to-user view auditor1
auditor1 can read resources but not change them.
Verify rolebindings
oc -n payments get rolebinding
==========
Submit