Cloud Global

 View Only
  • 1.  Openshift ROLE assignment

    Posted Wed December 09, 2020 11:07 AM
    I was just trying to implement ROLE based access in Open shift and have following queries:

    I have user1 which is cluster-admin and with that I want to create a user2 that can view only project2.

    1. Which command can I use with user1 to create user2

    $ oc adm policy add-role-to-user view user2 -n project2
    $ oc policy add-role-to-user  view user2 -n project2

    2. Also how to verify if this user with this specific rights is created correctly, is there any command.

    3. How to remove project creation capability from one user.

    ------------------------------
    Niket Agrawal
    ------------------------------


  • 2.  RE: Openshift ROLE assignment

    Posted Fri December 11, 2020 06:05 PM
    Hi Niket- this article may help you:

    Grant Users Access to Project/Namespace in OpenShift | ComputingForGeeks

    ------------------------------
    Mike Potter
    ------------------------------