Remove a software configuration from a user account

You can remove a software configuration from a user account so that the software on the users' BlackBerry® device is no longer managed by the software configuration. If a user account has other software configurations assigned either directly to the user account or to a group that the user is assigned to, those software configurations still affect the user's BlackBerry® device. To remove the software configuration from a group, you can use the detachSoftwareConfigurationFromGroup() method instead.
Before you begin: Retrieve the following variables:
  • softwareConfigID integer for the ID of the software configuration that you want to remove from the user account
  • userID integer for the ID of the user account that you want to remove the software configuration from
  1. Invoke detachSoftwareConfigurationFromUser().
    DetachSoftwareConfigurationFromUserResult result=coreWebService.detachSoftwareConfigurationFromUser(userId,swconfigId);
  2. Check the result for errors and handle any errors.
    if (result.getDetachSoftwareConfigurationFromUserReturnStatus().getCode()!= DetachSoftwareConfigurationFromUserReturnStatusEnumType.SUCCESS)
    {
        //handle any errors   
    }
Next topic: Managing groups

Was this information helpful? Send us your comments.