Active Directory: how to get current domain RRS feed

  • Question

  • Hi there,

    My scenario is there is a user in the AD OU container and there are two UPN (User logon name) along with this account. for example:

    1. my ldap: dev.local
    2. my domain: devlocal
    3. my user account: aaronp
    4. my user account (user logon name): aaronp@dev.local and aaronp@dev.com.my

    my question is how to convert UPN format to devlocal\aaronp, when user uses the UPN format to login certain system even if the format are aaronp@dev.local and aaronp@dev.com.my. finally I could get the devlocal\aaronp

    • aaronp@dev.local --> devlocal\aaronp
    • aaronp@dev.com.my --> devlocal\aaronp


    Hi there, if you found my comment very helpful then please | Propose as answer | . Thanks and Regards.

    Friday, May 8, 2020 8:46 AM

All replies

  • Hi Will .H,

    Thank you for posting here.

    Since your question is more related to Active Directory, you can consider posting it at the following more appropriate forum for more efficient responses.

    Directory Services forum

    Thank you for your understanding.

    Best Regards,

    Xingyu Zhao

    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Monday, May 11, 2020 1:40 AM