Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SAP SQL Anywhere, on-demand edition 1.0 SP 6 » Task syntax

CreateUser task

Creates a cloud user.

Syntax 1 (SQL)
CALL DBCloud.CreateUser ( user_name=user_name, password=password [, optional-parameters ] )
Syntax 2 (Cloud Command utility)
dbcloudcmd run CreateUser user_name password [ optional-parameters ]
  • user_name

    The name of the user. (Required)

  • password

    The password for the user. (Required)

  • user_privileges

    A comma-delimited list of initial privileges for the user. To create an Administrator, specify Administrator. The default is NULL.

  • full_name

    The user's display name in the Cloud Console. The default is NULL.

  • email_address

    The email address for the user. The default is NULL.

  • description

    The description of the object. The default is NULL.

  • web_console_preferences

    Internal use only. The default is NULL.

  • user

    An output parameter. Internal use only.

Conditional privileges

CreateDropUser, ManageUserPrivilege, DelegatePrivilege


To create a user, you must have CreateDropUser privilege. To grant the user privileges, you must also have one of the following privileges:

  • ManageUserPrivilege. A user with ManageUserPrivilege can grant or revoke any privilege.

  • DelegatePrivilege. A user with DelegatePrivilege can only grant their own privileges.

  • user_name

    The user name that you specify must be unique in the cloud. In the Cloud Console, the user is identified by what you specify in the full_name parameter.

  • web_console_preferences

    Omit this parameter. The web_console_preferences parameter stores Cloud Console-specific user preferences.


Run the following task to create a user named John Smith:

dbcloudcmd run CreateUser user_name=jsmith password=sql full_name="john smith" email_address=""

Run the following task to create a user named JSmith with CreateDropTag and AddRemoveTag privileges:

dbcloudcmd run CreateUser user_name=jsmith password=sql user_privileges="CreateDropTag,AddRemoveTag"