Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

DeleteUser

Delete a user from Active Directory.

Task version: 2.0.0

Required Frends version: 5.7+

Required .NET version: 8.0

Compatible Agents: Crossplatform

Task Parameters

Name
Description

Path : String

Directory path.

Default: - Example: CN=Users,DC=Example,DC=Com

CommonName : String

Common name (CN).

Default: - Example: Firstname Lastname

Name
Description

Host : String

LDAP server host.

This must resolve to a Domain Controller (FQDN) in the same domain

as the object (user) being deleted.

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

Name
Description

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 delete the user

Task Result

Name
Description

Success : Boolean

User deleted. Example: true

CommonName : String

Common name. Example: Firstname Lastname

Path : String

Path. Example: CN=Users,DC=Example,DC=Com

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: System.Exception: No Such Object

Task Changelog

Changelog for Task Frends.LDAP.DeleteUser.

[2.0.0] - 2026-10-27

Changed

  • Task is now a static class and targets .NET 8.

  • Added required Options parameter and CancellationToken to the Task method.

  • [Breaking Change] LDAP errors are now thrown by default (ThrowErrorOnFailure); disable it to get a failed result instead.

  • [Breaking Change] Result.Error is now an object with Message and AdditionalInfo instead of a string. Missing connection parameters are also handled by the same error handling.

  • Added ErrorMessageOnFailure option to override the error message.

[1.1.0] - 2026-02-03

Changed

  • Improved documentation for Host parameter usage

[1.0.0] - 2022-09-26

Added

  • Initial implementation

Last updated

Was this helpful?