/auplc:manage-aup-learning-cloud-usersfrom auplc
Manages users, groups, passwords, admins, and quota balances for AUP Learning Cloud using built-in Python scripts and the JupyterHub admin console.
Ships in auplc. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Run the day-2 people operations: create and onboard users (including a whole class), set/reset passwords, manage admins and groups, and grant or refresh quota balances. Prefer the repository's deterministic scripts for bulk work and use the web console for interactive inspection or one-off admin edits.
The two built-in scripts are the primary automation surface:
scripts/generate_users_template.py creates CSV/Excel rosters with the
columns manage_users.py expects.scripts/manage_users.py performs API-backed user/admin/password work and
quota commands.Exact command variants, file formats, env setup, and the quota field guide are in reference.md.
custom.adminUser.enabled: true
and the bootstrapped admin).aup-learning-cloud checkout and install
pandas, openpyxl, and requests in the Python environment that runs the
scripts.manage_users.py requires JUPYTERHUB_URL and JUPYTERHUB_TOKEN for every
subcommand. The bundled scripts/hub-api-env.sh derives both from the
admin credentials Secret and checks reachability. Set HUB_ADMIN_SECRET when
custom.adminUser.existingSecret uses a non-default name.kubectl is only needed to bootstrap
an API token from jupyterhub-admin-credentials or inspect scheduled quota
refresh CronJobs.custom.auth.native: true.
Password actions never apply to GitHub identities. The admin Secret's
admin-password seeds only a missing administrator password row. The database
hash is authoritative afterward, and changing the Secret doesn't rotate or
reconcile it. The separate api-token key supplies CLI API access.| Task | Best surface | Command |
|---|---|---|
| Generate roster | CLI | generate_users_template.py --prefix student --count 50 -o users.csv |
| Create users | CLI for bulk, web for one-off | manage_users.py create users.csv |
| Passwords | CLI for bulk native-user resets | manage_users.py set-passwords users.csv --generate -o passwords_output.csv |
| Admins | CLI or web | manage_users.py set-admin [--file admins.csv] [--revoke] |
| Groups | Web console | /hub/admin Groups view, including Sync Now |
| Quota | CLI for repeatable grants, web for inspection | set-quota / add-quota / list-quota |
| Export/backup | CLI | manage_users.py export backup.xlsx |
Unlimited quota is entered as -1, ∞, or unlimited. Admin users and the
current admin are protected from deletion.
Confirm the live script surface. The project can evolve; quickly check help before composing a large batch command:
python scripts/generate_users_template.py --help
python scripts/manage_users.py --help
Set env so manage_users.py can reach the Hub API:
source skills/manage-aup-learning-cloud-users/scripts/hub-api-env.sh
(Or export JUPYTERHUB_URL/JUPYTERHUB_TOKEN yourself — see reference.)
Use HUB_URL="https://hub.example.com", HUB_NAMESPACE=<namespace>, and
HUB_ADMIN_SECRET=<secret-name> when the deployment uses non-default values.
Generate a roster template:
python scripts/generate_users_template.py --prefix student --count 50 --output users.csv
Inspect the roster. Confirm the username and optional admin columns,
and remember usernames are normalized to lowercase by manage_users.py.
Create the users:
python scripts/manage_users.py create users.csv
Issue passwords (generated, forced change on first login by default):
python scripts/manage_users.py set-passwords users.csv --generate -o passwords_output.csv
Promote teaching staff as needed:
python scripts/manage_users.py set-admin teacher01 teacher02
Grant starting quota (if quota is enabled):
python scripts/manage_users.py set-quota student01 student02 --amount 1000
Deliver credentials securely from passwords_output.csv, then verify in
/hub/admin (users appear, groups correct, balances set).
This skill owns quota operations (granting/refreshing balances, scheduled
refresh). Quota rates and enable/disable knobs (custom.quota.*,
accelerators.*.quotaRate) live in the configure-courses skill.
set-quota (absolute) / add-quota (delta) / list-quota, or the
inline/batch editors and global "Refresh Quota" in /hub/admin.set-quota --file quotas.csv expects username,quota columns;
add-quota --file users.csv --amount 100 expects at least username.custom.quota.refreshRules become Kubernetes CronJobs. Verify with
kubectl -n jupyterhub get cronjobs -l app.kubernetes.io/component=quota-refresh.
The rule schema is in reference.md.passwords_output.csv
must be delivered securely and never committed.create, set-passwords, set-admin, or quota commands.manage_users.py delete … --yes removes
accounts; confirm the list with the user first. Admins/current admin are
protected, but data on user PVCs can still be orphaned.set-admin grants full platform control — confirm the target list.refreshRules filter touches many users; confirm before applying.kubectl reads the separately
delivered api-token from the Secret or inspects scheduled-refresh CronJobs.Env setup, every manage_users.py subcommand, the admin console views,
refreshRules schema, and troubleshooting: reference.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub amdresearch/aup-learning-cloud --plugin auplc13 skills in this plugin
/build-aup-learning-cloud-imagesGroup: Plan & deploy AUP Learning Cloud. Builds and publishes the AUP Learning Cloud Docker images — the Hub image and the CPU/GPU notebook and course images — with ./auplc-installer img build. Use when the user wants to build, rebuild, tag, or push AUPLC images, mentions img build / img pull, the dockerfiles/ directory, auplc-hub / auplc-base / auplc-default / auplc-cv / auplc-dl / auplc-llm / auplc-physim / code-cpu / code-gpu, a gfx-specific image tag, the GHCR registry, code-server VS Code extensions, or preparing images for an offline/registry deployment. Covers GPU-target tagging and pushing to a registry. Do not use to install or deploy a cluster (install-/deploy-aup-learning-cloud) or to edit the course catalog in values.yaml (configure-aup-learning-cloud-courses)./configure-aup-learning-cloud-authGroup: Maintain AUP Learning Cloud. Configures authentication for AUP Learning Cloud with custom.auth provider flags for auto-login, dummy, native, GitHub, or native plus GitHub. Covers GitHub App OAuth and team sync, native accounts, password policy, forced first-login change, and custom.adminUser bootstrap. Use for custom.auth, GitHubOAuthenticator, custom.githubOrgName, oauth_callback_url, allowed_organizations, jupyterhub-admin-credentials, login 404s, OAuth callback errors, or "Resource not accessible by integration". Do not use for resource-to-group mapping (configure-aup-learning-cloud-courses), bulk users (manage-aup-learning-cloud-users), or private-repo cloning (configure-aup-learning-cloud-repos)./configure-aup-learning-cloud-coursesGroup: Course & other editor. Edits the AUP Learning Cloud course catalog and access control in the JupyterHub values.yaml: course images, resource requirements, spawn-UI metadata, group ordering, GPU accelerator selectors, team-to-course mappings, and the quota knobs. Use when the user wants to add/remove a course or notebook environment, show/hide an option in the spawn picker, map a GitHub team or group to courses, set per-course CPU/memory/amd.com/gpu requirements, add or retune an accelerator (custom.accelerators), or configure quota (cpuRate, quotaRate, minimumToStart, refresh rules). Triggers include values.yaml, custom.resources.images, custom.teams.mapping, custom.accelerators, custom.quota, acceleratorKeys, launchMode. Do not use to build the images themselves (build-aup-learning-cloud-images) or to install a cluster (install-/deploy-aup-learning-cloud)./configure-aup-learning-cloud-reposGroup: Course & other editor. Configures per-user Git repository cloning: the custom.gitClone block (githubAppName repo picker, defaultAccessToken for private repos, allowedProviders, maxCloneTimeout, defaultPersistence, allowPersistenceChoice) and the per-resource metadata.allowGitClone gate that clones a repo into a user's workspace at spawn time. Use when the user wants to let learners clone a Git repo on startup, enable the spawn-form repo URL/branch field or GitHub repo picker, give access to a private repo (bot PAT or GitHub App token), choose whether cloned repos persist, allow GitLab/Bitbucket, or debug "Repository URL ignored" or a failed clone init container. Triggers include custom.gitClone, allowGitClone, githubAppName, defaultAccessToken, allowedProviders, init-clone-repo. Do not use to set up GitHub login itself (configure-aup-learning-cloud-auth), to publish a course to the catalog (configure-/develop-aup-learning-cloud-courses), or to build images (build-aup-learning-cloud-images)./deploy-aup-learning-cloudGroup: Plan and deploy AUP Learning Cloud. Use when the user wants to install the multi-node JupyterHub-on-k3s platform on physical hardware through either PXE-diskless or SSH-preinstalled nodes. Do not use for the single-node ./auplc-installer flow, notebook image builds, or unrelated JupyterHub and k3s installations./develop-aup-learning-cloud-coursesGroup: Course & other editor. Authors a new learning toolkit for AUP Learning Cloud end to end: write the course notebooks under projects/<NAME>/, package them into a course Docker image (dockerfiles/Courses/<NAME>/ + a Makefile target on the ROCm GPU base), register the course in auplc_installer/catalog.py (COURSE_CATALOG + team mapping), then hand off to build + values wiring. Use when an educator wants to add a new course or lab set, create a toolkit like CV/DL/LLM/PhySim, turn a notebook folder into a spawnable course, add a Dockerfile/build.sh for a course, or add a course key to the catalog. Triggers include projects/CV, projects/DL, projects/LLM, projects/PhySim, dockerfiles/Courses, COURSE_CATALOG, "add a course", "new toolkit". Do not use to only build an existing image (build-aup-learning-cloud-images), to only edit the values catalog for an existing image (configure-aup-learning-cloud-courses), or to clone a user's repo at runtime (configure-aup-learning-cloud-repos).Other plugins' skills for the same job