Maya (مايا) is an Avestan (an ancient Persian language) name that means “graciousness”, “gracious nature”. Since this is a good meaning, Muslims can use it.
Maya can also be the name of a Roman goddess. This meaning is unacceptable in Islam because it is a pagan name. For this reason if you use the name Maya, you should use it for the Avestan meaning, not the Roman meaning