Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

UserPrincipal has no way to set 'PhysicalDeliveryOfficeName' attribute

$
0
0

I am using UserPrincipal to create a new user in AD, however I cannot set the 'office' field. This is an application using asp.net core 2.2

I believe it should be called 'PhysicalDeliveryOfficeName', but it doesn't exist as part of UserPrincipal:

UserPrincipal usr = new UserPrincipal(ctx);

usr.GivenName = givename;
usr.Surname = surname;
usr.PhysicalDeliveryOfficeName = "New York"; //not found
usr.Save();

How can I set this field?


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>