文章目录Keycloak测试在 Keycloak 创建测试用户1. 用 admin / admin 登录 Keycloak Admin Console2. 左上角切换到 jobcopilot realm不是 master3. 左侧菜单 → Users → Add user4. 填写5. 点 Create6. 进入该用户 → Credentials 标签 → Set password设置密码关闭 Temporary7. 添加一个 attribute1. 创建 tenant_id 属性2. 进入 Users 标签 → testuser → tenant_id8. 点 SaveKeycloak测试在 Keycloak 创建测试用户请在浏览器打开http://localhost:80801. 用 admin / admin 登录 Keycloak Admin Console2. 左上角切换到 jobcopilot realm不是 master3. 左侧菜单 → Users → Add user4. 填写Username: testuserEmail: 随意如 testexample.comEmail Verified: 开启5. 点 Create6. 进入该用户 → Credentials 标签 → Set password设置密码关闭 Temporary7. 添加一个 attribute1. 创建 tenant_id 属性回到Realm settings→ User profile→ Attributes→ Create attribute填写Name: tenant_idDisplay name: tenant_id其余保持默认即可。2. 进入 Users 标签 → testuser → tenant_idKey:tenant_idValue:11111111-1111-1111-1111-1111111111118. 点 Save
在Keycloak创建测试用户流程记录(添加属性attribute)
发布时间:2026/6/16 8:52:57
文章目录Keycloak测试在 Keycloak 创建测试用户1. 用 admin / admin 登录 Keycloak Admin Console2. 左上角切换到 jobcopilot realm不是 master3. 左侧菜单 → Users → Add user4. 填写5. 点 Create6. 进入该用户 → Credentials 标签 → Set password设置密码关闭 Temporary7. 添加一个 attribute1. 创建 tenant_id 属性2. 进入 Users 标签 → testuser → tenant_id8. 点 SaveKeycloak测试在 Keycloak 创建测试用户请在浏览器打开http://localhost:80801. 用 admin / admin 登录 Keycloak Admin Console2. 左上角切换到 jobcopilot realm不是 master3. 左侧菜单 → Users → Add user4. 填写Username: testuserEmail: 随意如 testexample.comEmail Verified: 开启5. 点 Create6. 进入该用户 → Credentials 标签 → Set password设置密码关闭 Temporary7. 添加一个 attribute1. 创建 tenant_id 属性回到Realm settings→ User profile→ Attributes→ Create attribute填写Name: tenant_idDisplay name: tenant_id其余保持默认即可。2. 进入 Users 标签 → testuser → tenant_idKey:tenant_idValue:11111111-1111-1111-1111-1111111111118. 点 Save