How do you ask what is your name in spanish?

If you're speaking informally, like to a friend or younger family member -

Como te llamas?

Speaking formally to a single person, such as a boss-

Como se llama Usted?

Speaking informally to a group of people (only Spain and certain other countries)-

Como OS llameis?

Speaking to a group (Mexico and others) -

Como se llaman Ustedes?