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;
or
groups.Claims

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!

25 votes
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

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

    3 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...
      • 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 CainRon 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 https://github.com/dotnet/wcf.

        I opened a new issue with your suggestion at https://github.com/dotnet/wcf/issues/909 .
        Feel free to open new issues (https://github.com/dotnet/wcf/issues/new) 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