Skip to content

User Roles Management

Managing User Roles

This document outlines the steps to manage user roles and permissions within the platform.

Add a User to a Namespace

After authentication, a user is designated as a guest. Admins can promote the user to a user by adding them to a namespace.

Open the Namespace Manager, select the desired namespace:

Select namespace

At the bottom, enter the user’s name or email and click “Add user”:

Add user

Promote a User to Admin

To promote a user to an admin, typically requested by faculty or an existing admin:

Run the following command:

Terminal window
kubectl edit prpuser

This opens vi to edit the user details. Search for the user’s email and change the Role in the spec section to admin.

As an admin, the user can create namespaces in the Namespace Manager. If added to a namespace, they will have admin rights for that namespace.

To promote a user from user to admin of the same namespace, change the role, then remove the user from the namespace and re-add them via Namespace Manager.

Demote an Admin to User

To demote an admin to a user, run the following command:

Terminal window
kubectl edit prpuser

Change the Role to user, then remove the user from the namespace and re-add them via Namespace Manager.