# UpdateUser

Required Frends version: 5.5+

Required .NET version: 6.0

Compatible Agents: Crossplatform

Source code: <https://github.com/FrendsPlatform/Frends.LDAP>

{% tabs %}
{% tab title="Parameter: Input" %}

| Name                                      | Description                                                                                                                                                                                                                                                                                                                           |
| ----------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| ModificationMethod : `ModificationMethod` | <p>Modification method.</p><p>Possible values:</p><ul><li><code>Add</code>:</li></ul><p>Modification method.</p><ul><li><code>Delete</code>:</li></ul><p>Modification method.</p><ul><li><code>Replace</code>:</li></ul><p>Modification method.</p><p><br>Default: <code>0</code><br>Example: <code>ModificationMethod.Add</code></p> |
| CreateDN : `Boolean`                      | <p>Set true to create distinguished name (DN) from Input.CommonName and Input.Path instead of using Input CreateDN.</p><p><br>Default: <code>False</code><br>Example: <code>false</code></p>                                                                                                                                          |
| DistinguishedName : `String`              | <p>Distinguished name (DN).</p><p><br>Default: <code>-</code><br>Example: <code>CN=Tes TUser,ou=users,dc=wimpi,dc=net</code></p>                                                                                                                                                                                                      |
| CommonName : `String`                     | <p>Common name (CN).</p><p><br>Default: <code>-</code><br>Example: <code>Firstname Lastname</code></p>                                                                                                                                                                                                                                |
| Path : `String`                           | <p>Directory path.</p><p><br>Default: <code>CN=Users,DC=Example,DC=Com</code><br>Example: <code>CN=Users,DC=Example,DC=Com</code></p>                                                                                                                                                                                                 |
| Attributes : `Attributes[]`               | <p>Attributes to be updated.</p><p><br>Default: <code>-</code><br>Example: <code>Telephone, +358123456789</code></p>                                                                                                                                                                                                                  |
| {% endtab %}                              |                                                                                                                                                                                                                                                                                                                                       |

{% tab title="Parameter: Connection" %}

| Name                          | Description                                                                                                                                                                                                        |
| ----------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Host : `String`               | <p>LDAP server host.</p><p>This must resolve to a Domain Controller (FQDN) in the same domain</p><p>as the user being updated.</p><p><br>Default: <code>-</code><br>Example: <code>dc1.emea.company.com</code></p> |
| Port : `Int32`                | <p>Port. Value 0 = use LDAP/LDAPS default port which is 389 or 636 depending on (SecureSocketLayer) and (TLS).</p><p><br>Default: <code>0</code><br>Example: <code>389</code></p>                                  |
| SecureSocketLayer : `Boolean` | <p>Perform secure operation.</p><p><br>Default: <code>-</code><br>Example: <code>true</code></p>                                                                                                                   |
| TLS : `Boolean`               | <p>Connection is protected by TLS.</p><p><br>Default: <code>-</code><br>Example: <code>true</code></p>                                                                                                             |
| User : `String`               | <p>User.</p><p><br>Default: <code>-</code><br>Example: <code>Foo</code></p>                                                                                                                                        |
| 🗝Password : `String`         | <p>Password.</p><p><br>Default: <code>-</code><br>Example: <code>Bar123</code></p>                                                                                                                                 |
| {% endtab %}                  |                                                                                                                                                                                                                    |

{% tab title="Result: Result" %}

| Name                  | Description                                                              |
| --------------------- | ------------------------------------------------------------------------ |
| Success : `Boolean`   | <p>Update completed.<br>Example: <code>true</code></p>                   |
| Error : `String`      | <p>LDAP Error message.<br>Example: <code>Entry Already Exists</code></p> |
| CommonName : `String` | <p>Common name.<br>Example: <code>Firstname Lastname</code></p>          |
| Path : `String`       | <p>Path.<br>Example: <code>CN=Users,DC=Example,DC=Com</code></p>         |
| {% endtab %}          |                                                                          |

{% tab title="Changelog" %}

## Changelog

### \[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
  {% endtab %}
  {% endtabs %}
