Harry Potter: Wizards Unite has the ability for you to add friends via a “Friend Code”
This friendcode can be shared with other players and provides rewards for you and your friends based on your friendship level.
Friends have in-game social benefits, such as bonus Wizarding XP and Wizarding Challenge XP when you engage in Wizarding Challenges together.
In the course of your efforts to contain the Calamity, you’re sure to encounter other witches and wizards of the Statute of Secrecy Task Force. When you add them to your Friends List and work together with them, you will earn social benefits. The more Friends you have and team up with, the better and the more the rewards.
You have the ability to change your friend code in Harry Potter: Wizards Unite. When you choose this option in the game you will be shown the following message "Are you sure you want to change your Friend Code? You’ll no longer be able to receive Invitations with your current Friend Code. This change will not affect your current Friends List".
Once your friends code is changed, you will no longer be able to receive friend requests to your original code. Only change this when you don’t want to receive friends anymore through this code.