diff --git a/src/spaceone/identity/model/workspace_group_user/request.py b/src/spaceone/identity/model/workspace_group_user/request.py index 9800318d..6927b2ef 100644 --- a/src/spaceone/identity/model/workspace_group_user/request.py +++ b/src/spaceone/identity/model/workspace_group_user/request.py @@ -32,7 +32,7 @@ class WorkspaceGroupUserRemoveRequest(BaseModel): class WorkspaceGroupUserUpdateRoleRequest(BaseModel): workspace_group_id: str role_id: str - params_user_id: str + target_user_id: str user_id: str domain_id: str diff --git a/src/spaceone/identity/service/workspace_group_user_service.py b/src/spaceone/identity/service/workspace_group_user_service.py index c06e8dd7..faf2939f 100644 --- a/src/spaceone/identity/service/workspace_group_user_service.py +++ b/src/spaceone/identity/service/workspace_group_user_service.py @@ -260,7 +260,7 @@ def update_role( params (WorkspaceGroupUserUpdateRoleRequest): { 'workspace_group_id': 'str', # required 'role_id': 'str', # required - 'params_user_id': 'str', # required + 'target_user_id': 'str', # required 'user_id': 'str', # injected from auth (required) 'domain_id': 'str', # injected from auth (required) } @@ -287,7 +287,7 @@ def update_role( workspace_group_vo = self.workspace_group_mgr.get_workspace_group( params.workspace_group_id, params.domain_id ) - user_vo = self.user_mgr.get_user(params.params_user_id, params.domain_id) + user_vo = self.user_mgr.get_user(params.target_user_id, params.domain_id) if user_vo.state in ["DISABLED", "DELETED"]: _LOGGER.error(f"User ID {user_vo.user_id}'s state is {user_vo.state}.") raise ERROR_NOT_ALLOWED_USER_STATE(