code: def add_permissions(self, user_id, permissions):
          
          pretty_permissions = self.format_permission_object(permissions)
          LOGGER.warning("Adding the following permissions to %s: %s", user_id, pretty_permissions)
          return self.user_service.addBulkPortalPermission(pretty_permissions, id=user_id)
docs: Enables a list of permissions for a user
  
          :param int id: user id to set
          :param list permissions: List of permissions keynames to enable
          :returns: True on success, Exception otherwise
  
          Example::
              add_permissions(123, ['BANDWIDTH_MANAGE'])