PurposeA limited number of empirical studies have indicated that individuals who experience workplace ostracism tend to engage in subtle and retaliatory behaviors as a means of seeking inner peace. However, research on organizational behavior and employee psychology in relation to ostracism is still in its nascent stages. Specifically, further investigation is warranted to explore how supervisor ostracism influences task procrastination (TP) through psychological processes such as self-efficacy, self-esteem and motivation. Notably, a significant gap exists in the ostracism literature, as it has yet to thoroughly examine employee behaviors related to knowledge hiding (KH) and TP in the context of individual or team-based work (Zhao et al., 2016; Brouwer and Jansen, 2019). Therefore, the present study aims to address this gap and expand the research stream within the education sector by introducing “threat to self-esteem” (TSE) as a mediating factor in the outcomes of ostracism.Design/methodology/approachThe study employed a quantitative approach, using questionnaires to collect data and mainly focused on statistics and standards. The authors used SPSS and Smart-PLS to employ numerical values developed from questionnaire surveys. Likewise, we employed primary data collection tools, including mixed survey analysis (self-reported and peer-reported). The data were collected from middle-level managers working in three public sector universities. By using a three-wave research design with a two-week interval in each phase, we were able to separate the measurement of the predictor and moderator factor [supervisor ostracism (SO) and individual resilience (IR)], mediator (TSE) and outcome variables (KH and TP).FindingsThe study has discovered a substantial relationship between variables, and all hypotheses are accepted according to the data results and findings. The study measures the effects of supervisor ostracism on knowledge hiding and task procrastination through mediating effect of threat to self-esteem, which individual resilience moderates. This study adds a few contributions to the current literature, following the goals stated above. First, this attempts to highlight employee KH behavior and TP behavior by identifying SO as the primary predictor.Research limitations/implicationsThe organization should closely monitor the level of workplace ostracism. One strategy to accomplish this goal is to routinely gauge the extent of ostracism at work using targeted techniques like surveys and observation. The organization can also create an employee assistance program for the workers to assist them in coping with the mistreatment and better adjusting to the workplace culture. Furthermore, employee empowerment and collaborative decision-making can boost workers' self-esteem, eventually leading to diminishing knowledge-hiding and procrastination habits inside the organization.Originality/valueThere is a research gap regarding the barriers to KH from the perspective of team dynamics and interpersonal mistreatment at work because prior research has focused on knowledge sharing, organizational culture and organizational obstruction. Research on organizational behavior and employee psychology in relation to ostracism is still in its nascent stages. Specifically, further investigation is warranted to explore how SO influences TP through psychological processes such as self-efficacy, self-esteem and motivation. Notably, a significant gap exists in the ostracism literature, as it has yet to thoroughly examine employee behaviors related to KH and TP in individual or team-based work.