Can I retrieve the logged in username from Edge?

Amna Alremeithi 0 Reputation points
2023-02-09T03:35:43.89+00:00

I wanted to ask if there's a way to retrieve the currently logged in user from Edge; I have a web app and wish to retrieve the username for login.

 

There was a method used in Internet Explorer (ActiveXObject), however I am hoping that there is another method for Edge.

 

Thank you.

Microsoft Edge
Microsoft Edge
A Microsoft cross-platform web browser that provides privacy, learning, and accessibility tools.
2,125 questions
{count} votes

4 answers

Sort by: Most helpful
  1. risolis 8,701 Reputation points
    2023-02-09T04:10:48.9266667+00:00

    Hello @Amna Alremeithi

    Thank you for posting this concern on this community space.

    I was reading your case scenario and I am not quite sure, but here are my 2 cents so, I wonder if you have tried to press F12 on the Edge Browser and then start using the features available as the next image is showing down below as reference:

    User's image

    Let me know if that was useful but if not, I can keep assisting you further.

    Looking forward to your feedback,

    Cheers,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


  2. ShiJieLi-MSFT 7,391 Reputation points Microsoft Vendor
    2023-02-09T09:41:07.31+00:00

    Hi @Amna Alremeithi ,

    Unfortunately, you cannot retrieve the logged-in username from Edge, because this would be an issue for security. Edge, and other modern browsers attach great importance to security.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Best Regards,

    Shijie Li

    0 comments No comments

  3. risolis 8,701 Reputation points
    2023-02-11T23:18:27.29+00:00

    Hello @Amna Alremeithi

    Try to use the following feature as shown down below:

    User's image

    Looking forward to your feedback,

    Cheers,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  4. risolis 8,701 Reputation points
    2023-02-12T18:31:13.9233333+00:00

    Hello @Amna Alremeithi

    I hope you are doing excellent.

    I wonder if you had any chance to review the last answer posted.

    Looking forward to your feedback,

    Cheers,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments