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
- Invoke detachSoftwareConfigurationFromUser().
detachSoftwareConfigurationFromUser request = new detachSoftwareConfiguration();
request.userId = userID;
request.swconfigId = softwareConfigID;
detachSoftwareConfigurationFromUserResponse response = coreWebService.SoftwareConfigurationFromUser(request);
FindMailStoreUsersResult result = findMailStoreUsersResponse.returnValue;
- Check the result for errors and handle any errors.
if (result.detachSoftwareConfigurationFromUserReturnStatus.code != DetachSoftwareConfigurationFromUserReturnStatusEnumType.SUCCESS)
{
//handle any errors
}
Was this information helpful? Send us your comments.