Of all the restriction codes recorded against foreign nationals in Türkiye, the one in the "G" series concerning general security is the most consequential and the least explained. A person carrying it may be refused entry, refused a residence permit, and blocked from a citizenship application — usually without being told why. This article explains what the code is understood to signify in practice, why it is challengeable, and how those challenges are run.
What the code signifies
Türkiye's migration system records restriction codes (tahdit kodları) against foreign nationals. In administrative practice, the G-87 code is applied to persons assessed as constituting, or as potentially constituting, a threat to general security.
Two qualifications are important. First, the classification and consequences of codes are administrative, not set out in a published statutory schedule, and practice can change — so any description, including this one, should be verified against the position actually recorded in an individual's case. Second, the code is an assessment, not a finding of guilt. No court has determined anything; an administrative body has reached a conclusion on material the person has not seen.
What it does
- Entry. The person may be refused entry at the border, including after boarding a flight.
- Residence. Applications for residence permits, including extensions, are refused on public order or security grounds.
- Work. Work permit applications are affected.
- Citizenship. An application will not proceed while the code stands; the security screening is where it surfaces.
- Family. Family residence permit applications by a spouse are affected.
The practical effect is comprehensive, which is why the code has to be addressed rather than worked around.
Where these codes come from
People carrying a security code are frequently unable to account for it, and that is not evasion — the underlying material is not disclosed. In practice, codes of this kind arise from a range of sources:
- intelligence assessments, sometimes based on association rather than conduct;
- information shared by another state;
- a period of residence or travel in a region of concern;
- employment, membership or family connection to a person or organisation under assessment;
- an unresolved matter that was closed judicially but remains on an administrative record;
- mistaken identity — a name resembling another person's.
The last of these is more common than one might expect, particularly where names are transliterated from another alphabet and where a common surname is involved.
Why it is challengeable
A restriction code and the decisions taken on the strength of it are administrative acts, subject to judicial review before the administrative courts.
The principle that decides most of these cases is a general one in Turkish administrative law: the administration must be able to demonstrate a concrete basis for its assessment. An act resting on nothing more than an unexplained conclusion is unlawful, and settled administrative case law has annulled decisions where the administration produced no substantiated foundation for them.
In litigation, the court requires the administration to produce the file underlying the decision. That is the pivotal moment: either material appears that supports the assessment, or it does not. A great many of these cases are effectively decided at that point rather than on argument.
Where family life is affected — a spouse, children resident in Türkiye — the constitutional protection of family life and Article 8 of the European Convention on Human Rights are engaged, and the decision must be proportionate. A decision that separates a family without a demonstrated basis is exposed on that ground as well.
How the case runs
- Establish what is recorded. An enquiry with the migration authorities, which a lawyer can make under a power of attorney without the person travelling. This is always the first step, because advice given without knowing the code is guesswork.
- Identify the act to challenge. The code itself, or the decision taken on it — a refused permit, a refused entry, a removal decision. The applicable time limits differ, and a removal decision carries only seven days.
- File the annulment action before the administrative court with jurisdiction over the deciding authority, within the applicable period — sixty days for most decisions.
- Seek a stay of execution where implementation would cause harm difficult to remedy.
- Require production of the file, and address whatever the administration produces.
- Evidence the person's position: ties to Türkiye, family, property, employment, clean record, and — where mistaken identity is suspected — the material distinguishing them from the other person.
Timescales and expectations
First-instance proceedings commonly take several months to a year; appeals add further months. A stay decision arrives sooner.
No honest lawyer gives a percentage before reading the file, because the outcome depends on what the administration produces. What can be said is that the cases which succeed are those where the administration cannot substantiate the assessment, and the cases which fail are those where it can.
Where the person is outside Türkiye, the entire case can be conducted by a lawyer under a power of attorney; the procedure is written and attendance is not ordinarily required.
What not to do
- Do not attempt entry to test the position. A refused entry is itself recorded and makes matters worse.
- Do not try a different border post or a third country. The record is national.
- Do not travel on a second nationality's passport. Records attach to the person, and the attempt is a serious matter in itself.
- Do not pay anyone offering informal removal of a code. Codes are removed administratively or by court order.
- Do not assume time will cure it. Security codes do not necessarily expire.
If the person is in Türkiye
Where a security code surfaces while the person is in the country, the position can escalate quickly to a removal decision and possible administrative detention. Two protections then matter: the seven-day period for challenging removal, during which and while proceedings continue the person may not be removed unless they consent; and the separate application to the magistrate's court against detention, decided within five days.
Both require immediate instruction. This is not a situation in which to spend a week gathering documents first.
Frequently asked questions
Will I be told why the code was applied? Not usually in any detail. Requiring production of the file is part of the point of litigation.
Does it expire? Security codes do not necessarily expire. Establish the position rather than waiting.
Can it be removed administratively? Some codes can. Security codes generally require litigation.
Can I apply for a residence permit while it stands? Applications will encounter it. Address the code first.
Can I enter for a family emergency? A visa with an annotation permitting entry for a defined purpose may be possible. It is applied for at a consulate with documentation.
Does it affect my Turkish spouse or children? Not their status — but it affects family life, which is directly relevant to challenging the decision.
Can the case be run without me? Yes, by a lawyer under a power of attorney.
Start with the record
Everything in a security code case depends on information the person does not have: what is recorded, and what the administration can show for it. Establishing the first takes days; testing the second is what the litigation is for.
Dural Hukuk makes the record enquiry for clients abroad, brings annulment actions against restriction codes and the decisions taken on them, and applies for stays of execution where removal is in prospect. Call +90 535 260 74 54 or use the contact form on this site.
This article is general information on Turkish law as at August 2026 and is not legal advice. Code classifications and their consequences are administrative and can change; obtain advice on your own record.

