@cli.register_custom_action('<STR_LIT>')<EOL><INDENT>@exc.on_http_error(exc.GitlabBlockError)<EOL>def block(self, **kwargs):<DEDENT>
path = '<STR_LIT>' % self.id<EOL>server_data = self.manager.gitlab.http_post(path, **kwargs)<EOL>if server_data is True:<EOL><INDENT>self._attrs['<STR_LIT:state>'] = '<STR_LIT>'<EOL><DEDENT>return server_data<EOL>
Block the user.

        Args:
            **kwargs: Extra options to send to the server (e.g. sudo)

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabBlockError: If the user could not be blocked

        Returns:
            bool: Whether the user status has been changed