Lasso Soft Inc. > Home

[Admin_CreateUser]

[Admin_CreateUser] creates a new user. The tag requires two parameters: the name of the user to be created and the password for the new user.

The result is True if the user is created successfully. The result is False if the user could not be created or if the user already exists.

This tag can be called by a group administrator or by the global administrator. The tag can either be called on a page that has been authenticated using an [Auth_...] tag or accepts optional -Username and -Password parameters to authenticate the tag. The tag cannot be used within [Inline] ... [/Inline] tags that authenticate as an administrator.

  • Syntax
  • Parameters
[Admin_CreateUser: 'Username', 'Password']

[Admin_CreateUser: 'Username', 'Password', -Username='Administrator Username', -Password='Administrator Password']
Required Parameters
New Username The username for the user to be created.
New Password The password for the user to be created.
Optional Parameters
-Username Optional administrator username.
-Password Optional administrator password.
Examples

To create a new user using values supplied from a form:

Use the [Admin_CreateUser] tag. The following example creates a new user using values supplied in the Username and Password values in an HTML form.

[Admin_CreateUser: (Action_Param: 'Username'), (Action_Param: 'Password')]
Result:
True
Tag Link [Admin_CreateUser] Category Admin
Type Substitution Data Source Any
Support Preferred Version 5.0
Output Type Boolean Security Tag
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft