UserMgrUserSetProperty (FUN)

FUNCTION UserMgrUserSetProperty : RTS_IEC_RESULT

Set properties of a user. See category ‘User and group properites’

InOut:

Scope

Name

Type

Comment

Return

UserMgrUserSetProperty

RTS_IEC_RESULT

Error code
  • ERR_OK: Properties could be set

  • ERR_PARAMETER: Invalid user

  • ERR_FAILED: Invalid combination of property flags (e.g. password change not allowed but password not up to date)

  • ERR_NO_ACCESS_RIGHTS: User not authorized

Input

hUser

RTS_IEC_HANDLE

Handle to authorized user

Inout Const

pszUser

STRING

User name, limited to 59 chars

Input

userProperty

DWORD

User properties