A Spanish court upholds the dismissal of a programmer who used AI at work although the company banned it
A Spanish high court confirms the dismissal of a programmer who used AI while the company banned it, alongside other breaches. What it says and what to learn.
In this article
Apps and services change often. The steps in this guide were reviewed on the date shown; if a menu doesn't match, check the official sources linked at the end. Information reviewed on .
Can you be fired for using ChatGPT or another AI at work? A ruling by the High Court of Justice of Castilla y León in Spain offers a clue: it has upheld the disciplinary dismissal of a programmer who, among other things, used AI while the company banned it.
The case
According to Genbeta, the ruling is dated 25 May 2026:
- The company banned AI use from June 2023 to June 2025. After that it allowed it on express request.
- The worker, a programmer, used AI between January and May 2025, during the ban.
- But that wasn't all. The company also accused the worker of:
- Doing projects for third parties on the company computer during working hours.
- Making personal purchases at work.
- Breaking IT security rules.
- Systematically failing to do the job.
Privacy argument rejected
The company reviewed the work laptop's browser history. The employee argued this invaded their privacy, but the court rejected that claim.
The legal basis
The court applied article 54.2.d) of Spain's Workers' Statute, which allows disciplinary dismissal for breach of contractual good faith or abuse of trust. It dismissed the worker's appeal.
Read the headline carefully
Genbeta itself acknowledges that the ruling rests on the combination of repeated conduct, and doesn't say what would have happened if using AI had been the only issue. So it doesn't mean using AI once is automatic grounds for dismissal. Nor is it stated whether the ruling is final.
What to learn
- Ask about or read your company's AI policy. More and more companies have rules: some ban it, others allow it with conditions.
- If it's allowed, don't paste confidential company or client data into an AI. Here's how to use it sensibly: privacy when using AI tools.
- Remember the company computer isn't yours: what you do on it can be reviewed.
- If you code, AI is now almost essential, but use it with good practices and with your employer's approval.
Sources and documentation
- artificial intelligence
- work
- dismissal
- courts
- news