Oc policy: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 7: Line 7:
=Subcommands=
=Subcommands=
==add-role-to-user==
==add-role-to-user==
Add an existing role - by creating a binding - to users or service accounts, for the current project, or, if '-n' is used, for the specified project:
oc policy add-role-to-user


<pre>
<pre>

Revision as of 16:54, 1 November 2017

Internal

Overview

Subcommands

add-role-to-user

Add an existing role - by creating a binding - to users or service accounts, for the current project, or, if '-n' is used, for the specified project:

oc policy add-role-to-user 
oc policy add-role-to-user view system:serviceaccount:monitored-project:monitor-agent

add-role-to-group

oc policy add-role-to-group view system:serviceaccounts -n <some-project>