0 votes

I am trying to get properties of users through the ADSI api. Some of our attributes in AD are not always filled, for example the employeeID (that gets added after a process is complete). I keep getting the following exception when I come across a user that doesn't have a value for employeeID: "The 'employeeID' property cannot be found in the cache.

I am loading a custom object through a LINQ query, so I can't catch the exception when I search for that property. Is there another method I should be using that returns null if the property doesn't exist (without throwing an exception)?

by (140 points)

1 Answer

0 votes
by (216k points)

Hello,

There is no other method that would return null or whatsoever. If the property is not set for an object, the Get and GetEx methods throw an exception. The best option would probably be to rewrite your code without using LINQ queries, at least that part of the code that deals with accessing Adaxes ADSI API.

Related questions

0 votes
1 answer

Hi, I have a piece of PS code being called by Adaxes and I'm trying to email each AD group member after they are removed from an AD group. Currently I am unable to find ... .LogMessage("User removed: " + " $member", "Information") $emailto = $member.mail ...

asked Jun 2, 2015 by firegoblin (1.6k points)
0 votes
1 answer

I am somewhat new to my adaxes system but have been 'ramping up quickly' ... I noticed a week or so ago that querying my logs suddenly takes a LOT longer than it used to. ... performing that I might not be?? I'd appreciate any thoughts ... Thanks. - Scott W.

asked Aug 6, 2014 by hms.scott (220 points)
0 votes
1 answer

Hello I tried to create a "business rule" to automatically email a designated email-adress. Thats not a problem. But i want to be able to get the "enrolled"- ... sincerely The Adaxes system Is it possible to create a business rule with the wanted parameter?

asked 6 days ago by Baul (90 points)
0 votes
1 answer

I am unsure how to deal with this because of how Adaxes treats one identity account as two different objects, an AD and AzureAD user account, and both has different last logon values. What is a good way to combine the data?

asked Apr 22 by Daniel (100 points)
0 votes
1 answer

I have a scheduled task that generates several reports and saves them in the filesystem. The task runs only once a day. Is it possible to trigger the scheduled task ... solution to save a report in the filesystem after user creation? Thanks for your help

asked Apr 18 by lohnag (160 points)
3,355 questions
3,054 answers
7,799 comments
545,152 users