UpdateUser
Update Active Directory user.
Task version: 2.0.0
Required Frends version: 5.7+
Required .NET version: 8.0
Compatible Agents: Crossplatform
Source code: https://github.com/FrendsPlatform/Frends.LDAP
Task Parameters
ModificationMethod : ModificationMethod
Modification method.
Possible values:
Add: Adds the listed values to the given attribute, creating the attribute if it does not already exist.Delete: Deletes the listed values from the given attribute, removing the entire attribute (1) if no values are listed or (2) if all current values of the attribute are listed for deletion.Replace: Replaces all existing values of the given attribute with the new values listed, creating the attribute if it does not already exist. A replace with no value deletes the entire attribute if it exists, and is ignored if the attribute does not exist.
Default: Add
Example: ModificationMethod.Add
CreateDN : Boolean
Set true to create distinguished name (DN) from Input.CommonName and Input.Path instead of using Input CreateDN.
Default: False
Example: false
DistinguishedName : String
Distinguished name (DN).
Default: -
Example: CN=Tes TUser,ou=users,dc=wimpi,dc=net
CommonName : String
Common name (CN).
Default: -
Example: Firstname Lastname
Path : String
Directory path.
Default: CN=Users,DC=Example,DC=Com
Example: CN=Users,DC=Example,DC=Com
Attributes : Attributes[]
Attributes to be updated.
Default: -
Example: Telephone, +358123456789
Host : String
LDAP server host.
This must resolve to a Domain Controller (FQDN) in the same domain
as the user being updated.
Default: -
Example: dc1.emea.company.com
Port : Int32
Port. Value 0 = use LDAP/LDAPS default port which is 389 or 636 depending on (SecureSocketLayer) and (TLS).
Default: 0
Example: 389
SecureSocketLayer : Boolean
Perform secure operation.
Default: -
Example: true
TLS : Boolean
Connection is protected by TLS.
Default: -
Example: true
User : String
User.
Default: -
Example: Foo
🗝Password : String
Password.
Default: -
Example: Bar123
ThrowErrorOnFailure : Boolean
Whether to throw an error on failure.
Default: True
Example: true
ErrorMessageOnFailure : String
Overrides the error message on failure.
Default: -
Example: Failed to update the user
Task Result
Success : Boolean
Update completed.
Example: true
Error : Error
Error that occurred during task execution.
Example: object { string Message, Exception AdditionalInfo }
Error.Message : String
Summary of the error.
Example: Entry Already Exists
Error.AdditionalInfo : Exception
Additional information about the error.
Example: object { Exception AdditionalInfo }
CommonName : String
Common name.
Example: Firstname Lastname
Path : String
Path.
Example: CN=Users,DC=Example,DC=Com
Task Changelog
Changelog for Task Frends.LDAP.UpdateUser.
[2.0.0] - 2026-10-27
Changed
Task now targets .NET 8.
Added
OptionsandCancellationTokenparameters to the task.[Breaking Change]
Errorin the result is now an object withMessageandAdditionalInfoinstead of a string.LDAP and other errors are now thrown by default; set
Options.ThrowErrorOnFailureto false to get them in the result instead.[Breaking Change] Task rethrows exception when occured instead of creating a new generic Exception.
Added
Options.ThrowErrorOnFailureandOptions.ErrorMessageOnFailurefor error handling control.
[1.2.0] - 2026-02-03
Changed
Improved documentation for Host parameter usage
[1.1.0] - 2022-12-14
Added
New Input parameters CreateDN and DistinguishedName to give an option to insert DN without combining it from Input.CommonName and Input.Path.
[1.0.0] - 2022-09-30
Added
Initial implementation
Last updated
Was this helpful?

