USER UPDATE

Level

user,modify

History

Named arguments and domainName appear in 3.4.0

Description

Update value in a user attribute.

Usage

user=<User ID>|<User DN> operation=(add|mod|del) attribute=<attribute> [value=<value>] [domainname=<ldap>]
The list of attributes that can be updates is:
mail
description
uid
telephoneNumber

Returns

Error code

Remark

Some update operations may require specific rights:
Access requires ADMIN right to change other administrator access.
Some update operations (like password) must use specific commands.

Example

USER UPDATE USER="cn=Jean DUPONT,ou=users,o=stormshield,dc=int" OPERATION=add ATTRIBUTE=mail VALUE=jean.dupond@stormshield.eu
100 code=00f01400 msg="Attribute updated"

USER UPDATE USER=jd OPERATION=mod ATTRIBUTE=mail VALUE=jean.dupont@stormshield.eu
100 code=00f01400 msg="Attribute updated"

USER UPDATE USER=jd OPERATION=del ATTRIBUTE=mail
100 code=00f01400 msg="Attribute updated"

Cache category

user