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,919 questions
0 comments No comments
{count} votes

2 answers

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

  2. Bruce (SqlWork.com) 66,706 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.