How can we improve the Windows dev platform?

Get/Query Active Directory user information

As a developer I need access to the current logged in active directory user to check if the user has a specific role.

Normally I do this with:

WindowsIdentity currentUser = WindowsIdentity.GetCurrent();
var groups = currentUser.Groups;

So I can get the SID or the groups of the user.

Most companies want to control the access of the user by the active directory. The enterprise application uses this information whether a user got access or not.

If there is no api to access this information, enterprise application development with uwp becomes uninteresting. Please help us out!

30 votes
Sign in
Sign in with: facebook google
Signed in as (Sign out)

We’ll send you updates on this idea

Martin shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →


Sign in
Sign in with: facebook google
Signed in as (Sign out)
  • Anonymous commented  ·   ·  Flag as inappropriate

    Enterprise applications rely on Active Directory authentication. It would benefit IT professionals to be able to query Active Directory for user accounts in order to create enterprise tools.

    For example in Win32 apps, I can query AD for a user and quickly pull details from their account, such as group memberships, sAMAccountName, address information, manager, title, etc. From that simple query I can then quickly export the data to streamline data entry into other tools or automate those processes. I can also manipulate the results for other data entry, or reporting automation tasks.

  • Ron Cain commented  ·   ·  Flag as inappropriate

    Hi Martin,
    Thanks for the feedback. We appreciate hearing requests like yours.
    WCF for UWP is under active OSS development at

    I opened a new issue with your suggestion at .
    Feel free to open new issues ( or add comments directly to the one I added. To help us prioritize work, we'd love to hear as much specific information as you can provide about which features your UWP WCF app needs that aren't available to you.

Feedback and Knowledge Base