Multiuser Lingo Dictionary > Multiuser Lingo Dictionary > createUser |
![]() ![]() ![]() |
createUser
Syntax
system.DBAdmin.createUser [#userID:userName
, #password:passwordString
, #userlevel:integer
]
Description
Multiuser Server command; adds a new DBUser database object to the server. The user ID and password must be limited to 40 characters each and may not contain #
or @ symbols.
Example
This statement creates a new DBUser object for the user Bob with the password MySecret and a user level of 40:
errCode = gMultiuserInstance.sendNetMessage("system.DBAdmin.createUser", "anySubject", [#userID: "Bob", #password: "MySecret", #userlevel: 40])
The #userlevel
attribute is optional. If omitted, it defaults to the level specified in the server's Multiuser.cfg file.
The server's response looks like this:
[#errorCode: 0, #recipients: ["userName"], #senderID: "system.DBAdmin.createUser", #subject: "anySubject", #content: [#userID: "Bob"], #timeStamp: 180885670]
![]() ![]() ![]() |