How can I change value of preferred_username in profile scope?

I am trying to change value of “preferred_username” key which is in profile scope. Currently I am receiving default value as username. Is it possible to change its value? If yes, then how?