mng.SetUserAttributes
This job sets the properties of a user.
1. Input Parameters
| Name | Type | Required | Description |
|---|---|---|---|
|
INT |
Yes |
Currently not supported — pass |
|
BASE64 |
Yes |
Properties in XML format (see below). |
|
BOOL |
Yes |
|
2. UserInfo Structure
<AdmInfo>
<Users>
<User account_type="0" benutzer="Test" loginName="Test" flags="1"
geaendert="1" id="67" langid="0" locked="0" logincount="0"
logintime="0" name="Peter Muster"
osguid="EF989801BA8847199335DD4FDEF30BC5"
passwort="BF754341546553351243620206006521266514574240603407"
profil="66" server_id="3" supervisor="0"/>
</Users>
</AdmInfo>
| Attribute | Type | Description |
|---|---|---|
|
INT |
Login type: |
|
STRING |
Comment from user configuration |
|
STRING |
Username |
|
INT |
|
|
STRING |
Login name |
|
INT |
|
|
INT |
|
|
INT |
ID of the user |
|
INT |
ID of the used language (empty = German) |
|
INT |
|
|
INT |
Number of consecutive failed login attempts — not of successful logins. A successful login resets the value to |
|
STRING |
Name of the last login station |
|
INT |
Login timestamp |
|
STRING |
Full name of the user |
|
STRING |
User’s email |
|
STRING |
GUID of the user |
|
STRING |
Encrypted password of the user |
|
INT |
|
|
INT |
ID of the server |
|
STRING |
Name of the user’s workstation |
|
INT |
|
|
INT |
User account valid from (timestamp) |
|
INT |
User account valid to (timestamp) |
4. Notes on Writing
The job has no parameters for individual attributes — every property is passed through UserInfo. The usual approach is therefore read, modify, write back: fetch the complete UserInfo of the account with mng.GetUserAttributes, change the attribute in question and write the whole thing back.
|
For accounts with their own profile ( |
Since locked is written on every call, any unrelated change — to the remark, say — replaces the marker locked = 2 of an account locked by failed logins with 0, without unlocking it. Such a lock is released only by logincount="0" (see Lockout Behaviour); writing locked = 0 alone is not enough.
5. Required System Role
|
This job accesses the security system or user and group data and therefore requires the calling user to hold system role
The system roles assigned to the calling user can be determined with mng.GetUserRoles; an overview of all roles is available under System Roles. See also Error Codes. |