parameters: (self, value)
docstring: Set the user id. This method is defined explicitly, because:
  
        - we want to apply a different permission
  
        - we want to prevent duplicated user ids, but only when
          PAS _AND_ ERP5LoginUserManager are used
docstring_summary: Set the user id. This method is defined explicitly, because:
docstring_tokens: Set the user id . This method is defined explicitly because :
function: def _setUserId(self, value):
      """
      Set the user id. This method is defined explicitly, because:
  
        - we want to apply a different permission
  
        - we want to prevent duplicated user ids, but only when
          PAS _AND_ ERP5LoginUserManager are used
      """
      existing_user_id = self.getUserId()
      if value != existing_user_id:
        if value:
          self.__checkUserIdAvailability(
            pas_plugin_class=ERP5LoginUserManager,
            user_id=value,
          )
        if existing_user_id and not _checkPermission(Permissions.ManageUsers, self):
          raise AccessControl_Unauthorized('setUserId')
        self._baseSetUserId(value)
function_tokens: def _setUserId ( self , value ) : existing_user_id = self . getUserId ( ) if value != existing_user_id : if value : self . __checkUserIdAvailability ( pas_plugin_class = ERP5LoginUserManager , user_id = value , ) if existing_user_id and not _checkPermission ( Permissions . ManageUsers , self ) : raise AccessControl_Unauthorized ( 'setUserId' ) self . _baseSetUserId ( value )