How can i connect to AD from UWP app

Amulya 41 Reputation points
2022-03-02T01:41:34.633+00:00

I have a .Net core project and another UWP project

In .Net Core i have used, and was able to query the Active directory

System.DirectoryServices
System.DirectoryServices.AccountManagement

But here i am getting an exception for both of these references.

System.DirectoryServices is not supported on this platform.
System.DirectoryServices.AccountManagement is not supported on this platform.

So do i have any other option to connect to AD from this UWP app

Any help will be appreciated

.NET
.NET
Microsoft Technologies based on the .NET software framework.
3,415 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Siva-kumar-selvaraj 15,556 Reputation points
    2022-04-04T07:07:05.667+00:00
    1 person found this answer helpful.
    0 comments No comments

  2. Bruce (SqlWork.com) 56,931 Reputation points
    2022-03-09T02:50:22.023+00:00

    The error means the feature was not implemented. As UWP is dead and in maintenance mode, it is not likely to get implemented. There azure ad support, via msal, if you are use azure ad.

    Depending on the features you need you can use ldap, the standard fallback for ad services

    https://github.com/dsbenghe/Novell.Directory.Ldap.NETStandard

    0 comments No comments