KNOWLEDGE BASE
Log In    |    Knowledge Base    |    4D Home
Tech Tip: Programmatically creating users
PRODUCT: 4D | VERSION: 2003 | PLATFORM: Mac & Win
Published On: September 25, 2006

The Set user properties command can be used to quickly create many users. The following sample method will create 50 users without a password.


`Method: Create50Users
$prefix:="a"
$prefixMethod:="Startup_"
$password:=""
$numConnections:=2
$endDate:=!05/05/08!
For ($i;1;50)
  $prefixtemp:=$prefix+String($i)
  $prefixMethodtemp:=$prefixMethod+$prefixtemp
  Set user properties(-2;$prefixtemp;$prefixMethodtemp;$password;$numConnections;$endDate)
End for

Complete documentation for the Set user properties command is available at:
https://www.4d.com/docs/CMU/CMU00612.HTM