Run as different user asks for email address instead of user name

Christian Carrasco 65 Reputation points
2024-09-23T14:20:31.4333333+00:00

Environment: I built an Azure Virtual Desktop host pool and joined the sessions host to Entra ID and Intune. The user accounts are on-prem AD accounts synced into Azure with AD Connect.

Issue: On the desktop, Run as different user shows email address instead of username. On the desktop I need the ability run certain apps, like AD tools, as an on-prem Domain Admin.

User's image

We have Entra ID joined laptops, and on those I can Run as a different user with my on-prem Domain Admin account. Just not AVD session hosts.

User's image

What settings control the Run as different user fields?

Thank you

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,700 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. James Hamil 24,661 Reputation points Microsoft Employee
    2024-10-01T15:55:14.4133333+00:00

    Hi @Christian Carrasco , this is caused by the fact that your user accounts are synced from your on-premises Active Directory to Entra ID using Entra Connect. When you use the "Run as different user" feature, it is trying to authenticate the user using their Entra ID account, which is based on their email address.

    To work around this issue, you can use the following format when entering the username in the "Run as different user" dialog box:

    <domain>\<username>
    

    For example, if your on-premises domain is "contoso.com" and your username is "jdoe", then you would enter the following in the "Run as different user" dialog box:

    contoso\jdoe
    

    Please let me know if you have any questions and I can help you further.

    If this answer helps you please mark "Accept Answer" so other users can reference it.

    Thank you,

    James


  2. Christian Carrasco 65 Reputation points
    2024-10-01T21:25:11.32+00:00

    Hello @James Hamil Thanks for your response. When I used my non domain admin account it worked fine. When I used by domain admin account it came back with the below error. Both accounts are synced with Entra Connect but my domain admin account does not have an email address. Is that why it is not working from my DA account?

    User's image

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.