diff --git a/server/portal/apps/projects/views_unit_test.py b/server/portal/apps/projects/views_unit_test.py index e88c09419..8d803f355 100644 --- a/server/portal/apps/projects/views_unit_test.py +++ b/server/portal/apps/projects/views_unit_test.py @@ -689,9 +689,6 @@ def test_members_view_remove( recursionMethod="PHYSICAL", aclString="d:u:test_user,u:test_user", ) - mock_tapis_client.systems.removeUserCredential.assert_called_with( - systemId="test.project.PRJ-123", userName="test_user" - ) mock_tapis_client.systems.unShareSystem.assert_called_with( systemId="test.project.PRJ-123", users=["test_user"] ) @@ -754,9 +751,6 @@ def test_members_view_remove_setfacl_job( }, tags=["portalName:test"], ) - mock_tapis_client.systems.removeUserCredential.assert_called_with( - systemId="test.project.PRJ-123", userName="test_user" - ) mock_tapis_client.systems.unShareSystem.assert_called_with( systemId="test.project.PRJ-123", users=["test_user"] ) diff --git a/server/portal/apps/projects/workspace_operations/shared_workspace_operations.py b/server/portal/apps/projects/workspace_operations/shared_workspace_operations.py index fd082d8b6..fc9ece318 100644 --- a/server/portal/apps/projects/workspace_operations/shared_workspace_operations.py +++ b/server/portal/apps/projects/workspace_operations/shared_workspace_operations.py @@ -269,7 +269,6 @@ def remove_user(client, workspace_id: str, username: str): username, "remove", "none") - client.systems.removeUserCredential(systemId=system_id, userName=username) client.systems.unShareSystem(systemId=system_id, users=[username]) client.systems.revokeUserPerms(systemId=system_id, userName=username,