Skip to content

docs(auth): import-users 端点参考补 none 默认 + Console 向导入口#2831

Merged
os-zhuang merged 1 commit into
mainfrom
claude/sys-user-bulk-import-passwords-iv68s9
Jul 11, 2026
Merged

docs(auth): import-users 端点参考补 none 默认 + Console 向导入口#2831
os-zhuang merged 1 commit into
mainfrom
claude/sys-user-bulk-import-passwords-iv68s9

Conversation

@os-zhuang

Copy link
Copy Markdown
Contributor

浏览器 dogfood 验证身份导入链路后发现的两处文档小缺口:

  1. 端点参考行(API Reference 小节)仍写 "invite or temporary password policy"——这是 feat(auth): 身份导入默认不设密码(passwordPolicy: 'none') #2820 之前的表述。详细的 Bulk Import 小节已正确列出 none(默认)/invite/temporary,只是这个一行摘要漏了 none 默认。
  2. 无 Console 入口说明——objectui 的导入向导(framework#2782)已上线,但文档只讲了 API,没提管理员在 Users 列表点 Import 走向导。补一段说明上传/映射/dryRun 预览/temporary 密码一次性展示/500 行自动分批。

均为文档修正,无代码变更。

dogfood 验证记录(本 PR 的动因)

启动 showcase 服务器(admin 插件开启)+ objectui HMR 控制台,端到端验证了整条链路:

后端(真实 HTTP)features.admin 门控、create-user(一次性临时密码 + must_change_password)、403 PASSWORD_EXPIRED gate、import none 默认(无凭据建号、密码登录 401)、temporary(每行密码 + 首登强制改密)、行级校验(NO_IDENTITY/INVALID_EMAIL)、dryRun 零写入——全部符合预期。

前端(Playwright + 截图):Users 列表出现 Import + Create User 按钮(features.admin 门控);向导 preview 步显示 "Sign-in setup" 面板与 "No password (recommended)" 默认;temporary 策略完整导入后结果页展示一次性密码 + CSV 下载,adapter 正确 POST 到 /admin/import-users

Ref framework#2766 / #2820 / #2782

🤖 Generated with Claude Code

https://claude.ai/code/session_016r6eiJzivw1CkwTDSGho1o


Generated by Claude Code

…Console wizard entry

The detailed Bulk Import section already documents the none/invite/temporary
policies, but the API-reference one-liner still said "invite or temporary"
(the pre-#2820 default) and nothing pointed at the Console import wizard
shipped in objectui (framework#2782). Adds none as the default to the
endpoint reference and a short paragraph on the Users-list Import flow.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016r6eiJzivw1CkwTDSGho1o
@vercel

vercel Bot commented Jul 11, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
spec Ready Ready Preview, Comment Jul 11, 2026 7:53am

Request Review

@github-actions github-actions Bot added documentation Improvements or additions to documentation size/xs labels Jul 11, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review July 11, 2026 09:10
@os-zhuang
os-zhuang merged commit 51822cf into main Jul 11, 2026
15 checks passed
@os-zhuang
os-zhuang deleted the claude/sys-user-bulk-import-passwords-iv68s9 branch July 11, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/xs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants