USER UPDATE

Level

user+modify

History

Named arguments and domainName appear in 3.4.0

Description

Update value in an user attribut.

Implementation notes

A call to fw_ldap_update(), with many checks about what is modified,
and who tries to modify.

Usage

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

Returns

Error code

Remark

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

Example

user update "cn=Jean DUPONT,ou=users,o=stormshield,dc=int" add mail jean.dupond@stormshield.eu
100 Added mail="jean.dupond@stormshield.eu" for user cn=Jean DUPONT,ou=users,o=stormshield,dc=int

user update jd mod mail jean.dupont@stormshield.eu
100 Set mail to "jean.dupont@stormshield.eu" for user jd

user update jd del mail
100 Attribute "mail" removed for user jd CACHE_CATEGORY user