I'm a Senior Software Engineer talking more about engineering and management responsibilities. I got this information that a junior to me is getting more pay.
When the company was aggressively hiring, he got onboarded and well compensated.
Knowing this information, I avoid putting extra effort into the team.
I have more years of experience, but HR played me.
I can totally understand how frustrating this can be for you. I had this happen to a really good friend of mine who joined a startup early on (taking a paycut to do so), and then eventually finding out that later hires were getting paid way more. Unfortunately, this is quite common.
But I strongly advise taking a step back and looking at this situation in a different light, and examine the facts and your assumptions.
Fact:
Your company pays a new hire, who is at lower level, with higher salary (or TC).
Assumptions:
Your company/HR disrespects you or thinks you are not good or thinks you deserve to be paid less for some reason. E.g. they are trying to offend you personally by paying you less ("Play you" in your own words).
This assumption likely doesn't reflect the reality.
The fact of the matter is that each salary contract is an independent negotiation. And negotiation is all about leverage, and how you use that leverage. It's likely somewhere along the process negotiation, you handled it sub-optimally, resulting in a lower pay. No company will ever pay you more than what you bargain for.
Now, this isn't all bad news. Here's a couple good news:
At this point, I would ask yourself a few question:
Based of these questions, search deep down to see whether you still would like to stay here.
If yes, your goal is to renegotiate your pay. This can be hard, because right now, you don't have very much leverage. The only leverage you have is that you are going to quit without an alternative. Unless you have a tremendous relationship and/or the company will go down the drain the moment you, I don't think asking directly will do anything. It doesn't hurt to ask though, just keep your expectations in check.
To increase your leverage, you need to a find another company that is willing to pay you at a level you believe you deserve to get paid. Then you need to bring that offer back and ask for a raise. In the process of finding a team that's willing to pay you what you want be paid, you might decide that a new opportunity is better anyway.
Lastly, if there is anything you can do that will decrease your leverage in these negotiations, it's this thing you said you are doing:
Knowing this information, I avoid putting extra effort into the team.
Here's 2 reasons why:
Even if you are feeling vindictive, the best way to take revenge, is to become really really important and quitting at the top. I hope you don't go down the path of revenge though - it doesn't serve you. You can get easily get paid more by leaving and not hurt other people in the process.
Sucks to suck (jk). Here's some things I would tell myself if I were in your situation: