Posted on 24/05/2016 10:37:35
Hi Per,
I will try to answer on your first question. If you will download the AD project you will the "XmlFormatter.cs" file where you can add some specific fields import.
For example thre is a line like "item.AppendChild(GetColumnTag(xDoc, "AccessUserExternalID", user.EmployeeId));" which is filling the column "AccessUserExternalID" in the "AccessUser"
table from the Dynamicweb database. In the same way you can add some additional property to the "User.cs" file, fill it in the "ADHelper.cs" GetAllUsers() method with some value from AD and map it to Dynamicweb AccessUser table column like: "item.AppendChild(GetColumnTag(xDoc, "SomeCustomField", user.AdCustomField));" where the ""SomeCustomField"" can be some Dynamciweb user custom field column.
It will be also needed to check if the value is coming from the AD since due to different AD permission settings some fields values can be not returned from the AD.
Regards, Dmitrij