I have to write a firebase function that receives a JSON with a list of users and has to manage them with the following rules. For each user in the received list: