0 votes

Hello,
We have modified the Active Directory schema to include some custom fields. I am trying to read/write to those custom fields through the Adaxes API and am getting an exception: One or more input parameters are invalid. I am using the following:
IADsUser user = this.GetUserByLogin(name); //get the IADsUser
user.Put("customFieldName", "value");
user.SetInfo();

Any help would be appreciated.

by (140 points)

1 Answer

0 votes
by (216k points)

Hello,

Most probably, the value that you pass in the Put method is not supported by LDAP. For example, you are passing a member of an enumerator instead of explicitly passing an integer or string. Or, the type of the value that you pass and the type of the value that the property accepts mismatch.

Related questions

0 votes
1 answer

I would like to have the possibility to use different icons for AD groups. I have groups for file permissions, applications, mailboxes, etc. For each group type I ... do this without schema extension? or will this be possible in the future? regards pudong

asked May 6, 2022 by pudong (670 points)
0 votes
1 answer

Thanks for the info. I'm now grabbing the %adm-ManagerUserName% value, but need to remove the final 21 characters of it so it contains only their username and not our ... this in the PowerShell Script Editor for my business rule, I get the following error:

asked Mar 11, 2021 by mkvidera (60 points)
0 votes
1 answer

As part of our HR onboarding process, they need to specify non-AD integrated software requirements. Is there a way to have a customised field on the form that when ticked or ... say the name of the software and have it linked to a particular field in AD.

asked Apr 15, 2020 by russmerriman (40 points)
0 votes
1 answer

Hello, Is it possible to have a variable or custom field that I could use and reference from multiple PowerShell scripts? For example, I want to have two custom commands, ... It could be something system wide or maybe local to the scheduled task? Thanks! Ryan

asked Jun 4, 2019 by ryan_breneman (920 points)
0 votes
1 answer

The Advanced Search in the Domain Find(CTRL-F3) function allows you to select a custom Active Directory field(added by IT, not a windows default AD field). When you ... helpful to have a Contains, Does not Contain logical operator in the Find function. Thanks!

asked Oct 11, 2012 by mpaul (360 points)
3,346 questions
3,047 answers
7,772 comments
544,973 users