Creating a user account

When the application successfully completes the authentication and initialization process, it can send API calls to the BlackBerry Web Services. The sample application includes API calls to retrieve and display system data for the BlackBerry Device Service, to retrieve and display details for a user account, and to create a new user account using an email address.

These topics highlight the section of the code sample that is used to create a new user account. The following table describes the types of user accounts that you can create (the sample application creates a BlackBerry-enabled user account). For more details about creating user accounts, visit docs.blackberry.com/BWS to review the BlackBerry Web Services API reference and the BWS.createUsers API.

User type

Description

Administrator account - BlackBerry-enabled

A user account that is assigned login information and an administrative role so that the user can log in to the BlackBerry Administration Service and perform managements tasks. The user can be assigned a device.

To create this administrator account with the BlackBerry Web Services:
  • The AccountAttributes object is not null
  • The UserAttributes object is not null
  • The roleUID property is specified

Administrator account - Not BlackBerry-enabled

A user account that is assigned login information and an administrative role so that the user can log in to the BlackBerry Administration Service and perform managements tasks. The user cannot be assigned a device.

To create this administrator account with the BlackBerry Web Services:
  • The AccountAttributes object is null
  • The UserAttributes object is not null
  • The roleUID property is specified

User account - BlackBerry-enabled

A standard user account that does not require login information for the BlackBerry Administration Service or an administrative role. An administrator can assign a device to the user account.

To create this user account with the BlackBerry Web Services:
  • The AccountAttributes object is not null
  • The UserAttributes object is null

User account - Not BlackBerry-enabled

A user account that does not require login information for the BlackBerry Administration Service or an administrative role. An administrator cannot assign a device to the user account.

Create this type of user account only if you want an administrator to give the user administrative privileges by assigning the user to a group with an administrative role.

To create this user account with the BlackBerry Web Services:
  • The AccountAttributes object is null
  • The UserAttributes object is not null
  • The roleUID property is not specified


Was this information helpful? Send us your comments.