The only ones who had official, legal names were Roman citizens.
Our idea of a universal, legal name is very new.... especially for commoners.
People usually went by a variety of names. Perhaps one given by a parent at birth, but perhaps also by names given by others (often in response to some characteristic or attribute).
God on very rare occasion "changed" a person's name. Usually because the person had changed.
.