-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(mis): 新增租户允许使用已有用户作为管理员且用户可以更换租户功能 (#1165)
### 背景 某些用户的认证系统不允许创建用户,同时在初次导入时已将已存在的用户都导入到default账户下,会有以下问题 - 无法修改该用户所属租户 - 新建租户时由于无法创建用户,且认证系统内所有已存在用户以及导入至default,导致无法新建租户。 ### 改动 1. 新建租户时,允许用户将已有用户指定为该新建租户的租户管理员,并将该用户的所属租户改为此新建用户 2. 对于已有用户,允许修改其所属租户 ps: 以上两点都是针对scow已有用户并且已经没有账户关联关系。 平台管理的用户列表允许修改用户的所属租户,需要该用户没有任何账户关联。 ![image](https://github.com/PKUHPC/SCOW/assets/130351655/08020e0e-629d-4ec3-9989-4ba1c4b6c502) ![1710383278675](https://github.com/PKUHPC/SCOW/assets/130351655/4110fb14-3063-4f61-bf8b-c5bb5d8a0e5d) 新建租户增加 指定已有用户作为租户管理员 ![image](https://github.com/PKUHPC/SCOW/assets/130351655/62001ac4-cb2a-4764-8cff-5b113809629d)
- Loading branch information
1 parent
84a6327
commit a097dd1
Showing
20 changed files
with
703 additions
and
117 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"@scow/mis-server": patch | ||
"@scow/portal-web": patch | ||
"@scow/mis-web": patch | ||
"@scow/ai": patch | ||
--- | ||
|
||
新增无账户关系的用户修改所属租户且可以作为新增租户的管理员功能 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@scow/grpc-api": minor | ||
--- | ||
|
||
server 增加 ChangeTenant 接口修改用户的所属租户,增加 CreateTenantWithExistingUserAsAdmin 接口允许创建租户时指定已有用户作为租户管理员 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.