She may get better as she gets older, but right now if she continues to do something after her friends have asked her to stop, you may need to just continue to intervene, and say, "Hey, they asked you to stop so you need to listen and stop!" At this age, they tend to be caught up in what they want and not really realize that other kids may want to do something different. I've also noticed that sometimes if one kid is doing something that is annoying to other kids, then after a while those kids may just not play with them and then they learn the hard way. I know everyone is so sensitive about bullying these days and kids excluding other kids from playing with them, but being part of a group and getting along sometimes means not doing things that get on everyone's nerves and the natural consequence of not listening is not being allowed to be part of the group anymore. Last month I took my daughter (4 years old) to the playground near our house and she was running around and playing happily with another group of kids. Another little girl (3.5 years) showed up with her grandmother. Apparently this little girl had recently seen the Lion King movie and was all about pretending to be a lion. Which would have been fine, but she kept roaring in the other kids faces and trying to get them to be lions and hyenas too and you could tell the other kids did not like they way she was behaving. If she had just decided to run around with them without roaring like a lion she would have been fine. The grandmother kept telling her to stop but she wasn't listening, so finally Grandma had to tell her to either stop, or they were going to leave because she was scaring the other kids. She still didn't stop, so that was it for them at the playground. My daughter has a little friend who is 4 and can be on the bossy side, so when they get together, her friend has a hard time understanding that maybe DD doesn't want to play house and be the baby all the time while she gets to be the mommy, but the more DD stands up to her, hopefully the sooner it will sink in.
She's still pretty young, but you might want to make sure that as she gets older, with some coaching from you, that it improves. Some kids have a hard time reading social cues and they might really struggle later on.