Sign in

Managing workspaces and access control

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

DagKnows enables you to create multiple workspaces. Think of a workspace like a project. In a typical enterprise, you may have multiple teams who want isolation of their runbooks. Workspace is the way to handle it. You can create multiple workspaces, one for each team, and assign permissions to users so they can do various things on those workspaces. Please refer to the following figure:


It shows an example where

  • We have three users: userA, userB, userC
  • We have two workspaces: workspaceABC and workspaceXYZ
  • userA has role1 on workspaceABC and role2 on workspaceXYZ
  • userB has role1 on workspaceABC and no role on workspaceXYZ
  • userC has role3 on workspaceXYZ and no role on workspace ABC
  • So we have three roles. The privileges associated with a role can be defined using a matrix as shown in the figure.


Thus, you can control the privileges at the finest granularity for users by defining your own custom roles and assigning them to users. Please take a look at the various privileges in the first column. We have privileges regarding tasks such as viewing, editing, deleting code, input/output, etc. Likewise, we have privileges regarding jobs. When you execute a task, it creates a job. You you can control who can stop a job that's already started as well as view, delete job results. Note that the privilege to "start" a job is with a task as task.execute but privilege to stop a job is with jobs.


Next we can see how to create workspace and how to create custom roles and assign the roles to users.

  1. 1

    How to create a workspace

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    • Go to Settings (left nav bar)
    • Go to Access Control tab
    • Find the table for workspace management
    • Specify the workspace name you want to add. No special characters.
    • Specify the Default role you want to assign to any user for this workspace. If no roles should be assigned to a user by default, don't select anything.
    • Then click Add.



    • Ensure that the new workspace shows up in the table.


    1
  2. 2

    How to create a workspace role

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    1. Go to Settings
    2. Go to Access Control tab
    3. Find the button Add Custom Role
    4. Specify the name of the role. It can be any string with no special characters.
    5. Click Add
    6. Ensure that the role column appears in the roles table below.
    7. Now click on the check boxes to give desired privileges to this role. They are automatically saved.
    2
  3. 3

    How to assign a workspace role to a user

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.
    • Go to Users in the left nav bar
    • Find the user you want to assign the role to
    • Click Modify settings. This will open the user's settings on the right hand side.
    • In the section DagKnows roles find the workspace and select the role to assign from the dropdown.
    • Click Modify button at the bottom to save the changes


    3