Below, the WH-word who replaces a subject and so it is not moved:
- May I know who is speaking please?
- Max is speaking => who is speaking
In "May I know who you are?", the WH-word who doesn't replace a subject and so it must be moved to the subject position. Like this:
- May I know who you are?
- you are Max => who are you