From df6d2cb0454039686b012385c1d8e9a90c1da1d3 Mon Sep 17 00:00:00 2001 From: Jordan Bradford <36420801+jrdnbradford@users.noreply.github.com> Date: Fri, 6 Dec 2024 14:44:49 -0500 Subject: [PATCH] Update collaboration-users.md --- docs/source/tutorial/collaboration-users.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/source/tutorial/collaboration-users.md b/docs/source/tutorial/collaboration-users.md index 5aa53729..14120109 100644 --- a/docs/source/tutorial/collaboration-users.md +++ b/docs/source/tutorial/collaboration-users.md @@ -78,7 +78,7 @@ c.JupyterHub.load_roles = [] c.JupyterHub.load_groups = { # collaborative accounts get added to this group # so it's easy to see which accounts are collaboration accounts - "collaborative": [], + "collaborative": {"users": []}, } ``` @@ -102,12 +102,12 @@ for project_name, project in project_config["projects"].items(): members = project.get("members", []) print(f"Adding project {project_name} with members {members}") # add them to a group for the project - c.JupyterHub.load_groups[project_name] = members + c.JupyterHub.load_groups[project_name]["users"] = members # define a new user for the collaboration collab_user = f"{project_name}-collab" # add the collab user to the 'collaborative' group # so we can identify it as a collab account - c.JupyterHub.load_groups["collaborative"].append(collab_user) + c.JupyterHub.load_groups["collaborative"]["users"].append(collab_user) # finally, grant members of the project collaboration group # access to the collab user's server,