Configure Workspaces in Kong Manager

    • Authentication and RBAC are enabled
    • You are logged into Kong Manager as a or a user that has and /rbac read and write access

    Default workspace

    When the first Super Admin logs in, they begin in the workspace named default. From here, they may invite admins to manage the default or any other workspaces.

    To navigate between workspaces from the Overview page, click on any workspace displayed beneath the Vitals chart.

    The list of workspaces may be rendered as cards or a table, depending on preference.

    Create a Workspace

    This guide describes how to create workspaces in Kong Manager. You can also use the Admin API to create a workspace.

    1. Log in as the Super Admin. On the Workspaces page, click the New Workspace button to see the Create Workspace form. Name and choose a color / icon for the new Workspace.

      Each workspace name should be unique, regardless of letter case. For example, naming one workspace “Payments” and another one “payments” will create two different workspaces that appear identical.

      Do not name workspaces the same as these major API names (paths) in Admin API:

    1. In the workspace you want to edit, navigate to the Dashboard page.

    2. Click the Settings button. This button takes you to the Edit Workspace page.

    3. Here, you can edit the workspace avatar and avatar background color.

    4. Click Update Workspace to save.

    Delete a workspace

    Kong Manager

    Admin API

    Portal CLI

    Using Kong Manager, complete the following:

    1. Manually delete all files via Dev Portal > Editor. You cannot delete folders at this time, but deleting all files from a folder will remove the folder.
    2. Turn off the Dev Portal. Go to Dev Portal Settings > Advanced > Turn Off.
    3. Remove all roles from the workspace:

      1. Go to the Teams tab.
      2. Navigate to the Roles tab.
      3. Click View on the workspace you want to delete.
      4. Go to each role entry and click Edit.
      5. In the entry detail page, click Delete Role. A confirmation modal will appear. Click Delete Role again.
    4. Turn off the Dev Portal for the workspace:

    5. from the workspace:

      1. curl -i -X DELETE http://localhost:8001/{WORKSPACE_NAME}/rbac/roles/{ROLE_NAME|ROLE_ID}
    6. Delete all Dev Portal files associated with the workspace:

    7. Turn off the Dev Portal for the workspace:

    8. Delete each role from the workspace. You can’t complete this step using the Portal CLI, so switch to either the Kong Manager or Admin API tab and complete step 3.

    Delete a clean workspace

    If your workspace is clean, you can delete it using the Kong Manager GUI or the Kong Admin API. If not, see the previous section to .

    Admin API

    1. In the workspace you want to delete, navigate to the Dashboard page.

    2. Click the Settings button to open the Edit Workspace page.

    3. Click Delete.

      The deletion will fail if you have any data in your workspace.

    Send a DELETE request to the Kong Admin API:

    The deletion will fail if you have any data in your workspace.

    If it is successful, you should see the following response:

    If a role does not have permission to access entire endpoints within a workspace, the admin assigned to that role will not be able to see the related navigation links.

    To set up access:

    1. Click the Admins link in the Security section.

    If the sidebar is collapsed, hover over the security badge icon and click Admins.

    The Admins page displays a list of current admins and roles. Four default roles specific to the new workspace are already visible, and new roles specific to the workspace can be assigned from this page.