Iframe api participant email get

I am trying to get email of participant using external API “const email = api.getEmail(participantId);” but its undefined. I check both client local participant has email.

I think it is only possible to get our own email, not someone else…