Sign-On Policy (Basic) in Okta

Sign-On Policy (Basic) in Okta

The rulebook that decides who may sign in, from where, and with how much proof. Learn the basic building blocks of Okta sign-on policies, how rules are checked, and how to build a safe first policy.

Picture the entrance to a large office. A guard stands at the door with a short rulebook. Staff who walk in during working hours with a badge go straight through. Anyone arriving at midnight is asked for extra identification. Visitors from a banned list are turned away. The guard does not invent these decisions on the spot. They follow written rules, checked in order, every single time.

In Okta, that rulebook is called a sign-on policy. It tells Okta what to do each time someone tries to sign in: let them in, ask for more proof, or stop them at the door. This guide covers the basic ideas of sign-on policies from zero. It explains each piece, shows how Okta reads the rules, and walks you through building a simple, safe policy of your own.

1What Is a Sign-On Policy?

A sign-on policy is a set of rules that controls how people are allowed to sign in.

A sign-on policy is a collection of rules inside Okta. Each rule looks at the situation around a sign-in attempt, such as who the person is, which network they are on, and what device they use. Based on what it sees, the rule chooses an action. The action may be to allow access, to deny access, or to ask for an extra proof of identity, such as a code or a phone approval.

The word basic in this guide means we focus on the core, everyday features: policies, rules, conditions, actions, network zones, and session settings. These are enough to build a strong and sensible setup for most organisations. More advanced tuning can come later once these foundations are solid.

Everyday Analogy

Think of a sign-on policy as the rules at a cinema entrance. Ticket holders for today’s show go in. People with a ticket for another day are turned back. Children’s tickets need an adult to sign. Each rule checks a fact, then gives an answer. The first rule that fits decides what happens to you.

What a sign-on policy is not

  • It is not the list of people. People and their facts live in Universal Directory. The policy only reads those facts.
  • It does not decide what you can do inside an app. It decides whether and how you may get in. Permissions inside apps are a separate job called authorization.
  • It is not the same as a password rule. Password rules say how strong a password must be. A sign-on policy says when and how often proof is asked for.
Rules
checked from top to bottom
First match
wins and decides the action
3 actions
allow, prompt for proof, or deny

2Why Sign-On Policies Exist

One rule for everyone is either too weak for some people or too annoying for others.

Imagine a company with one simple rule: everybody signs in with a password and nothing more. Staff in the office find it easy. But a stolen password now opens everything, from anywhere in the world. Now imagine the opposite rule: everybody must pass three checks every time. It is safe, but staff become frustrated, and frustrated people look for shortcuts, which often creates new risks.

Different people, different needs

Not all sign-ins carry the same risk. A finance manager opening payroll from a coffee shop in another country is very different from a receptionist opening the visitor list from the office desk. Sign-on policies let you match the strictness to the situation, instead of treating every sign-in the same.

Protecting the sensitive doors

Some people hold powerful access, such as administrators. Some apps hold sensitive data, such as payroll or customer records. Policies let you place extra locks on these doors without burdening everyone else.

Controlling how long sign-in lasts

Without limits, a session could last for weeks. A laptop left open, a borrowed computer, or a stolen browser cookie would keep granting access. Policies set how long a session may last and how long it may sit idle, so old logins eventually expire.

!
Watch Out

Many real account takeovers happen because one forgotten sign-in path was weaker than the others. A policy is only as strong as its weakest rule, so every rule, including the last catch-all one, deserves a careful look.

One rule for everyone

  • Simple to explain
  • Too weak for sensitive access
  • Or too strict for everyday work
  • No way to react to risk

Policies with rules

  • Strictness matches the situation
  • Extra locks only where needed
  • Session lifetimes controlled
  • Easy to adjust as risks change

3Key Words You Need

A short dictionary. Each term says what it is, why it exists, and gives a picture to remember it.

Core

Policy

A named container of rules that applies to a chosen set of people. It exists to group related rules together. Think of one chapter of the rulebook.

Core

Rule

One instruction inside a policy: “if these conditions are true, then do this action.” Policies hold many rules, kept in order.

Core

Condition

A fact the rule checks, such as the person’s group, the network, or the device. Conditions answer “when does this rule apply?”

Core

Action

What the rule does when its conditions match: allow, deny, or prompt for extra proof.

Core

Priority

The order in which policies and rules are checked. Lower numbers are checked first, and the first match wins.

Core

Default Rule or Catch-All

The last rule in a policy. It matches anything that no earlier rule matched, so every sign-in always gets some answer.

Context

Network Zone

A named group of network locations, such as your office addresses or a list of blocked countries. Rules use zones to tell trusted places from untrusted ones.

Context

Risk and Behaviour Signals

Hints that a sign-in looks unusual, such as a new device or a sudden jump to a new country.

Proof

Factor or Authenticator

A way to prove identity, such as a password, a phone prompt, a code, or a security key.

Proof

Multi-Factor Authentication (MFA)

Asking for more than one kind of proof, so a stolen password alone is not enough.

Time

Session Lifetime

How long a sign-in remains valid, counted from the start and from the last activity.

Time

Factor Lifetime

How long Okta remembers that a person already passed MFA, so it can skip asking again for a while.

i
Good to Know

Rules are read like a short story told in order: “First, if this… then that. Otherwise, if this… then that. Otherwise, do this for everyone else.” Keeping that story in mind makes every policy easier to read.

4The Two Levels of Sign-On Policy

One policy guards the door to Okta, and another guards the door to each app.

Okta checks sign-in rules at two levels, and understanding both is the first big step.

Level 1: signing in to Okta itself

When a person first signs in to Okta, a policy decides whether they may start an Okta session, what proof is needed, and how long the session lasts. In the older Okta Classic Engine this is called the Okta sign-on policy. In the newer Okta Identity Engine, it is called the global session policy. It is “global” because it covers the whole Okta session, before any single app is opened.

Level 2: opening a particular app

Once a person has an Okta session, they may open apps from their dashboard. Each app has its own policy deciding whether this person may open it right now and whether more proof is needed first. In the Classic Engine this is called the app sign-on policy. In the Identity Engine, it is called an authentication policy, and one such policy can be shared by several apps.

Everyday Analogy

A shopping mall has a main entrance and also separate shop doors. The main entrance guard checks that you may enter the mall at all. A jewellery shop inside may then have its own guard who asks for extra identification. Passing the first check does not automatically pass the second.

flowchart LR
    U["User"] --> E["Okta Edge Load Balancer and API Gateway"]
    E --> SI["Sign-in Service"]
    SI --> GP["Okta Sign-On Policy or Global Session Policy"]
    SI --> UD[("Universal Directory")]
    GP --> Z["Network Zones"]
    GP --> R["Risk and Behavior Signals"]
    GP --> MFA["Authenticators and MFA"]
    SI --> SS[("Session Store")]
    U --> APP["Open an App from the Dashboard"]
    APP --> AP["App Sign-On Policy or Authentication Policy"]
    AP --> MFA
    AP --> Z
    SI --> LOG["System Log"]
    AP --> LOG
Figure 1: Two policy levels. The first guards the Okta session, and the second guards each app.

Why two levels is useful

Having two levels lets you keep everyday sign-in smooth while placing a stronger lock on sensitive apps. A person might sign in to Okta with one proof from the office network. When they click the payroll app, that app’s policy may ask for a stronger proof. This is called step-up authentication.

i
Good to Know

Menu names and policy names differ between the Classic Engine and the Identity Engine. The ideas stay the same. Always check which engine your Okta organisation uses before following a step-by-step guide, and compare the names you see on screen with the ones in this chapter.

5The Anatomy of a Policy

Policy, assignment, rule, condition, and action. Five pieces, one clear structure.

Every sign-on policy has the same simple structure. Once you can see it, you can read any policy at a glance.

1

The policy

A named container, such as “Staff Sign-In.” It holds rules and has a priority compared with other policies.

2

The assignment

The people the policy applies to, usually chosen by group. A policy assigned to the “Administrators” group only affects administrators.

3

The rules

An ordered list of instructions inside the policy. Each rule has its own conditions and its own action.

4

The conditions

The facts that must be true for a rule to fire, such as the network location or the type of device.

5

The action

What happens when the rule matches: allow, deny, or ask for more proof, together with any session settings.

Policies are also ordered

There may be several policies, each assigned to different groups. Okta checks the policies in priority order and uses the first one that applies to the person. Inside that policy, it checks the rules in priority order and uses the first one whose conditions match. So there are two layers of “first match wins”: first for the policy, then for the rule.

The default policy

Every Okta organisation comes with a default policy, assigned to everyone, with a default rule at the bottom. This is the safety net. If no other policy applies to a person, the default policy answers for them. Because it covers everyone who falls through the cracks, its default rule should be reviewed early, and not left on a relaxed setting by accident.

Everyday Analogy

A company handbook has special rules for pilots, for drivers, and for office staff, and then a general section for everyone else. If your job is not listed in a special section, you follow the general section. The default policy is that general section.

!
Watch Out

The order of rules matters as much as the rules themselves. A broad “allow everyone” rule placed above a narrow “block this country” rule will match first, and the block will never be reached. Always read your list from the top and ask, “could an earlier rule catch this person first?”

6How Okta Reads the Rules

The same simple steps run every time anyone signs in.

When a sign-in attempt arrives, Okta does not guess. It follows a fixed routine, which takes only a fraction of a second.

flowchart TD
    A["Sign-in attempt"] --> B["Find the policy assigned to this user"]
    B --> C["Read rules from top to bottom"]
    C --> D{"Do the rule conditions match?"}
    D -- No --> N["Try the next rule"]
    N --> D
    D -- Yes --> E{"What does the rule action say?"}
    E -- Deny --> X["Block access"]
    E -- Allow --> Y["Let the user in"]
    E -- Prompt --> P["Ask for a factor"]
    P --> Q{"Factor passes?"}
    Q -- Yes --> Y
    Q -- No --> X
Figure 2: How Okta evaluates a sign-in. The first matching rule decides the action.

The sign-in, step by step

sequenceDiagram
    participant U as User Browser
    participant O as Okta Sign-In
    participant P as Policy Engine
    participant Z as Zones and Risk Signals
    participant A as Authenticator
    U->>O: 1. Request to sign in
    O->>P: 2. Which policy and rule apply
    P->>Z: 3. Check network zone, device and risk
    Z-->>P: 4. Signals returned
    P-->>O: 5. Matching rule says prompt for a factor
    O-->>U: 6. Ask for a second proof
    U->>A: 7. Approve on the authenticator
    A-->>O: 8. Proof confirmed
    O-->>U: 9. Session created and access granted
Figure 3: A sign-in where the policy asks for a second proof.

Notice that the person’s password is only one part of the picture. The policy engine takes in facts about the network, device, and risk, then makes a decision. The password check proves a secret was known. The policy decides whether that is enough for this particular situation.

i
Good to Know

A rule that matches does not always mean the person is allowed in. A rule can match and say “deny.” Matching only means “this is the rule that governs this situation.” What happens next is the action.

7Conditions: What a Rule Can Look At

The facts that decide whether a rule applies.

Conditions are the “if” part of a rule. A rule can combine several conditions, and all of them must be true for the rule to match. The exact list differs by engine and plan, but these are the common ones.

Condition

People

Which users or groups the rule is for. This lets you give administrators, contractors, or a particular team their own rule.

Condition

Network location

Where the sign-in comes from. A rule can match “anywhere,” “inside a chosen network zone,” or “outside a chosen zone.”

Condition

Device or platform

The type of device, such as a desktop or a mobile phone, and sometimes whether the device is managed or registered with your organisation.

Condition

Risk level

Okta can estimate how risky a sign-in looks, for example low, medium, or high, and the rule can react to it.

Condition

Behaviour

Whether the sign-in looks unusual for this person, such as a new device, a new place, or travel that is too fast to be real.

Condition

How the person authenticates

Whether the person signs in directly with Okta, through a connected directory, or through another identity provider.

Combining conditions

Because all conditions in a rule must be true together, a rule can be very precise. For example: “People in the Finance group, outside the office network, on a mobile device.” That is a narrow slice of sign-ins, which can be given a stricter action than everyone else.

Everyday Analogy

Think of a club entry rule: “Members, after ten at night, without a guest, need to show a card.” Every part must be true for that rule to apply. A member arriving at six in the evening, or a member with a guest, falls under a different rule.

!
Watch Out

Do not rely on one signal alone. Network location can be hidden by tools that change a person’s apparent address, and a “trusted” office network can be reached by someone who has already broken in. Combine location with proof of identity, and do not treat location as proof by itself.

8Actions: What a Rule Can Do

Allow, deny, or ask for more. Plus the timing settings that go with them.

The three basic actions

Action

Allow

The person may sign in, usually after a normal password check. Used for low-risk situations such as a known person on a known network.

Action

Prompt for proof

The person must also pass an extra check, such as a phone approval or a one-time code. Used for medium-risk situations.

Action

Deny

The sign-in is blocked, no matter what the person types. Used for clearly unwanted situations such as banned networks.

How often to ask for the extra proof

When a rule asks for extra proof, there is a second choice: how often. In the Classic Engine, the options are commonly described like this.

  • Every sign-in: the person is asked each time they sign in. Safest, but the most interruptions.
  • Once per session: asked when a session starts, then not asked again until it ends.
  • Per device with a remembered period: after passing the check on a device, Okta remembers it for a chosen time, so the person is not asked again on that same device until the time runs out.

The remembered period is often called the factor lifetime. A short period is safer and a long period is more convenient. A sensible middle path is to remember trusted devices for a modest time, and to ask every time for sensitive apps.

Session settings

A rule can also set how long a sign-in lasts, with three common settings.

  • Maximum session lifetime: the longest the session may last, even if the person keeps working.
  • Idle time limit: how long the session may sit unused before it expires.
  • Persistence across browser restarts: whether the session survives closing and reopening the browser. Allowing this is convenient, but is less safe on shared computers.
SituationSensible actionWhy
Known staff on the office networkAllow, with a modest sessionLow risk and best for daily work
Same staff on an unknown networkPrompt for proofThe network adds uncertainty
Administrators from anywherePrompt every sign-inTheir access is powerful
Sign-in from a blocked countryDenyNo business reason to allow it
Unmanaged personal devicePrompt, with a short sessionOkta cannot vouch for the device
i
Good to Know

When in doubt between asking too often and asking too rarely, begin a little stricter, watch how people react, and relax carefully. It is easier to loosen a rule that is working than to repair damage after a rule that was too loose.

9Network Zones: Trusted and Untrusted Places

A zone is a named list of locations that a rule can refer to by name.

Writing a long list of network addresses inside every rule would be tiring and error-prone. Instead, Okta lets you create a network zone once, give it a clear name like “Head Office,” and then refer to that name in as many rules as you wish. If the office address changes, you fix the zone in one place and every rule is updated.

Types of zones

  • IP zones: lists of network addresses or address ranges, such as the ones your office or VPN uses.
  • Dynamic zones: zones defined by traits such as countries or regions, and sometimes by the kind of network, for example anonymising proxy services.

Okta organisations also commonly include built-in zones for blocking, such as a list of addresses that are always denied. Check the zone list in your own organisation to see what exists.

Everyday Analogy

A zone is like a saved contact group on your phone, such as “Family” or “Work.” Instead of choosing ten phone numbers each time, you choose the group name. Edit the group once and every message that uses it stays correct.

Common ways to use zones

Use

Trusted office or VPN

Allow smoother sign-in when the request comes from a network you control.

Use

Blocked regions

Deny sign-ins from places where you have no staff and no business.

Use

Anonymising networks

Ask for stronger proof, or deny, when a request seems to hide its true origin.

Use

Partner networks

Allow a partner’s addresses for a specific shared app, and nothing more.

!
Watch Out

Keep zones accurate. If an office moves or a VPN address changes and the zone is not updated, people may be unexpectedly blocked, or a stale address may stay trusted long after it should not be. Review zones whenever your network changes.

10Building Your First Policy, Step by Step

A safe, simple path from an empty page to a working policy.

The steps below describe the general approach. Screen names may differ slightly in your organisation, so treat this as a plan rather than a click-by-click manual.

1

Decide what you want in plain words

Write the rules as sentences first, such as “administrators always need a second proof” and “block sign-ins from countries where we have no staff.” If you cannot say it in plain words, you cannot build it safely.

2

Prepare the building blocks

Create the groups you need, such as administrators and contractors. Create network zones for the office, the VPN, and any blocked regions. Make sure people have registered at least one extra authenticator.

3

Create the policy and assign it

Give the policy a clear name and assign it to the group it should cover. Begin with a small test group, not the whole company.

4

Add rules from most specific to most general

Put the narrowest rules at the top, such as a block rule, then the special-group rules, then the general ones. Leave the default rule at the bottom as the catch-all.

5

Set actions and timings

For each rule, choose allow, prompt, or deny. Set how often proof is asked for, and set session lifetimes that suit the risk of each group.

6

Test before you trust

Sign in as test users from different situations. Where your organisation offers a policy simulation tool, use it to see which rule would match. Confirm the result matches your plain-word plan.

7

Roll out in waves and watch the logs

Widen the audience step by step. Watch the System Log for unexpected denials and complaints, and adjust before the next wave.

!
Watch Out

Never change sign-in rules while you are the only administrator signed in, with no other way back. A mistake could lock you out of the very console you need to fix it. Keep a second administrator session open, and keep a protected emergency account that is not subject to the new rule, until you have tested the change.

11An Example Basic Rule Set

A small, readable policy that fits many organisations as a starting point.

Here is an example of a basic set of rules, listed in the order they are checked. This is a teaching example, not a ready-made answer. Adjust it to your own people, networks, and risk.

OrderRule nameConditionsAction
1Block unwanted regionsEveryone, from the blocked-regions zoneDeny
2Administrators always prove itAdministrators group, from anywherePrompt for proof at every sign-in, with a short session
3Contractors need a second proofContractors group, from anywherePrompt for proof at every sign-in
4Staff on the office networkEmployees group, inside the office zoneAllow, or prompt once per remembered device
5Staff elsewhereEmployees group, outside the office zonePrompt for proof, with a moderate session
6Default ruleEveryone elsePrompt for proof, with a short session

Reading it like a story

Rule one stops unwanted places early. Rule two puts the strongest lock on the most powerful people. Rule three treats short-term outsiders carefully. Rules four and five let staff move easily in the office but ask for more elsewhere. Rule six makes sure anyone unexpected is still asked for proof. Notice that the final catch-all is not “allow.” It is “prompt,” so a gap in the plan fails safely.

Everyday Analogy

This rule set is like airport security lanes. There is a closed lane for banned travellers, a special careful lane for crew with powerful access, a fast lane for known frequent travellers, and a standard lane for everybody else. Every traveller ends up in exactly one lane.

i
Good to Know

Name your rules in plain language that describes the intent, such as “Administrators always prove it.” Good names turn the policy into documentation, and future administrators will understand it without guessing.

12Classic Engine and Identity Engine: Name Changes

Same ideas, different labels. A quick translation table.

Okta has gone through a major upgrade of its sign-in system. Older organisations use the Classic Engine, and newer ones use the Identity Engine. Because the labels differ, guides and screens can look confusing. This table helps match the names.

IdeaClassic Engine nameIdentity Engine name
Policy for signing in to OktaOkta sign-on policyGlobal session policy
Policy for opening one appApp sign-on policyAuthentication policy
Last rule in a policyDefault ruleCatch-all rule
Extra proofMFA prompt in the ruleAuthentication requirement in the rule, with chosen authenticators
Sharing a policy between appsUsually one policy per appOne policy can be reused by several apps
Which proofs are availableMFA enrolment policyAuthenticator enrolment policy
i
Good to Know

In the Identity Engine, because one authentication policy can serve many apps, a single change can affect many apps at once. That is powerful for consistency, but it means you should check which apps share a policy before you edit it.

13Sessions: The Life of a Sign-In

What happens after the rule says yes, and how a session eventually ends.

A sign-on policy does not only decide the moment of sign-in. It also shapes what happens afterwards. Once the rule allows access, Okta creates a session, which means it remembers that this browser has already proved its identity. The session is the reason the second app opens without another prompt.

stateDiagram-v2
    [*] --> SignedOut
    SignedOut --> Evaluating: Sign-in attempt
    Evaluating --> Denied: Rule says deny
    Evaluating --> Challenged: Rule says prompt
    Evaluating --> Active: Rule says allow
    Challenged --> Active: Factor passes
    Challenged --> Denied: Factor fails
    Active --> Idle: No activity
    Idle --> Active: User returns in time
    Idle --> Expired: Idle limit reached
    Active --> Expired: Maximum lifetime reached
    Expired --> SignedOut: Session cleared
    Denied --> SignedOut: Try again
Figure 4: The life of a sign-in session, from the first attempt to expiry.

Two clocks run at once

A session has two timers. The idle timer counts time since the last activity. If the person walks away, the timer eventually runs out and the session ends. The maximum lifetime timer counts from the moment the session began, and ends it even if the person has been busy the whole time. Together they make sure no session lives forever.

Two layers of session

Remember that apps keep their own sessions too. Ending an Okta session does not always end every app session straight away. Apps have their own timers, so for very sensitive apps, short app sessions and fresh proof on each visit are good safeguards.

Everyday Analogy

A parking ticket is valid for a set number of hours. Even if your car is not moving, the clock keeps running, and when it hits the limit you must pay again. The idle timer and the maximum lifetime work like two such clocks on your sign-in.

i
Good to Know

When a person leaves the company or a device is lost, an administrator can end that person’s sessions at once. Policy settings are the normal way sessions end, and manual session clearing is the emergency way.

14Advantages, Disadvantages and Trade-offs

Policies bring flexibility and control, and they ask for care in return.

Advantages

  • Right level of strictness: stronger proof only where risk is higher.
  • One central rulebook: consistent sign-in rules across many apps.
  • Readable and explainable: rules in order are easy to audit.
  • Flexible: change a rule and the new behaviour applies at the next sign-in.
  • Protects sensitive access: administrators and key apps can have extra locks.
  • Controls session length: old logins do not live forever.

Disadvantages

  • Order mistakes: a wrongly ordered rule can quietly undo another.
  • Lockout risk: a bad rule can block people, even administrators.
  • User friction: too many prompts frustrate people.
  • Maintenance: zones, groups, and rules need regular review.
  • Engine differences: names and features differ by engine and plan.
  • Location is not proof: location rules alone can give false confidence.

Thinking in trade-offs

The main trade is security against convenience. Each extra prompt makes sign-in safer and a little more tiring. The art of a good policy is asking for more only when the situation deserves it. A second trade is simplicity against precision. Many tiny rules can describe every situation, but a long list is hard to understand and easy to break. A short list of clear rules, ordered well, is usually safer than a clever list that nobody can read.

15Security Considerations

What attackers try against sign-in rules, and how a good policy answers.

Threat

Stolen passwords

Attackers use passwords leaked from other sites. Requiring a second proof makes a stolen password far less useful.

Threat

Phishing

A fake page tricks people into typing codes. Phishing-resistant authenticators, such as security keys, answer this best, especially for administrators.

Threat

Prompt fatigue

Attackers send many approval prompts, hoping the person taps approve to make them stop. Number matching and sensible limits help.

Threat

Session theft

A stolen session cookie can skip the password entirely. Short lifetimes and fresh proof for sensitive apps limit the damage.

Threat

Hidden location

Anonymising tools disguise where a request comes from. Dynamic zones and risk signals help spot them.

Threat

Weak last rule

A relaxed catch-all rule lets in anyone not matched earlier. Make it prompt or deny, not allow.

Defences that matter most

  • Require multi-factor authentication broadly, and use the strongest methods for administrators and sensitive apps.
  • Make the last rule safe. If nothing matches, ask for proof.
  • Deny what has no business reason. Block regions, networks, and anonymisers you never legitimately use.
  • Keep sessions short for powerful access. Administrators should have shorter sessions and fresher proof than ordinary staff.
  • Use risk and behaviour signals. Raise the required proof when a sign-in looks strange.
  • Protect the people who edit policies. Whoever can change a sign-on policy can weaken your whole defence, so give that power to very few people with strong sign-in.
  • Review regularly. Zones, groups, and rules drift over time, so check them on a schedule.
!
Watch Out

Okta has been moving toward requiring multi-factor authentication for its own Admin Console. Do not wait for that. Check how your organisation currently protects administrator access, and make sure it is strong now.

Everyday Analogy

A building can have a strong front door and a weak side door. Burglars always test the side door. A sign-on policy is only as strong as its weakest rule, so check every side door, especially the one at the very end of the list.

16Testing, Logging and Monitoring

You cannot trust a rule you have not tested, and you cannot improve one you cannot see.

Test before you roll out

  • Use a small pilot group and test accounts that sit in each of your groups.
  • Try sign-ins from inside and outside your zones, and from different device types.
  • Where your organisation offers a policy simulation tool, use it to see which rule would match for a given user and situation.
  • Confirm that denied cases are really denied and allowed cases are really allowed.

The System Log

Okta records events in the System Log. It includes events about sessions starting, policies being evaluated, extra proofs being asked for, passed, or failed, and policies or rules being changed. Administrators can search these records, and organisations often stream them to external security tools for storage and alerting.

Signals worth watching

Signal

Spike in denials

A sudden rise in denied sign-ins may mean an attack, or a rule or zone that was changed by mistake.

Signal

Many failed second proofs

Repeated failures for one account can mean someone is guessing, or that a person lost their device.

Signal

Policy or rule edits

Every change to a sign-on policy should be visible and reviewed, especially outside normal working hours.

Signal

Unusual locations

Allowed sign-ins from places you rarely see deserve a second look.

Everyday health measures

Beyond security events, useful numbers include how many sign-ins are prompted compared with allowed, how often people fail the extra proof, how long sign-in takes, and how many support requests relate to lockouts. If prompts are too frequent or lockouts are rising, the policy may be too strict for its audience and worth tuning.

i
Good to Know

Keep a simple change log outside Okta that records who changed which policy, when, and why. When something breaks, the answer to “what changed?” is almost always the fastest route to the fix.

17Design Patterns and Anti-patterns

Habits that keep a policy clean, and habits that slowly break it.

Patterns worth copying

Pattern

Specific to general

Order rules from the narrowest to the widest, so special cases are handled before the general ones.

Pattern

Fail safe at the end

Make the last rule ask for proof or deny, so any gap in your plan ends in a safe result.

Pattern

Group-based rules

Target groups, not individuals, so access follows roles automatically as people move.

Pattern

Zones by name

Define zones once with clear names and reuse them in many rules.

Pattern

Step-up for sensitive apps

Keep general sign-in smooth and place stronger proof on the most important apps.

Pattern

Pilot then widen

Assign new or changed policies to a small group first, and expand once results look good.

Anti-patterns to avoid

ANTI-PATTERN 01Avoid
What it looks like

A broad rule such as “allow everyone from anywhere” sits near the top of the list, above the stricter rules.

Why it hurts

It matches first for almost every sign-in, so the stricter rules below it are never reached. The policy looks strong on paper and is weak in practice.

Better approach

Put narrow and strict rules at the top, and let the broad rules sit near the bottom.

ANTI-PATTERN 02Avoid
What it looks like

The default or catch-all rule is left at a relaxed setting, allowing sign-in with only a password.

Why it hurts

Anyone not matched by a special rule, including new groups and forgotten users, gets the weakest treatment.

Better approach

Set the last rule to ask for extra proof, and review it whenever you add new groups or apps.

ANTI-PATTERN 03Avoid
What it looks like

The “trusted network” rule says anyone on the office network needs no second proof, ever, for any app.

Why it hurts

An attacker who reaches the office network, or a visitor on shared wireless, gets a free pass to everything.

Better approach

Use location as one signal, not as the only one, and keep a second proof for sensitive apps and powerful roles even on the office network.

ANTI-PATTERN 04Avoid
What it looks like

Changes are made straight in production for everyone, with no test, no pilot, and no second administrator watching.

Why it hurts

A single mistake can lock out the whole company, including the people who could fix it.

Better approach

Test with sample users, pilot with a small group, keep an emergency account and a second admin session, and write down how to undo each change.

ANTI-PATTERN 05Avoid
What it looks like

Dozens of one-off rules, each created for a single complaint, with names like “Rule 17” and no notes.

Why it hurts

Nobody can explain the policy, nobody dares remove a rule, and conflicts hide in the pile.

Better approach

Keep a short list of clearly named rules, record why each exists, and remove rules that no longer have a reason.

18Best Practices and Common Mistakes

A short checklist for running sign-on policies well.

Best practices

  • Write the plan in plain words first. Build only what you can explain.
  • Require multi-factor authentication broadly, and use phishing-resistant methods for administrators and sensitive apps.
  • Order rules carefully. Specific first, general last.
  • Make the catch-all rule safe. It should ask for proof or deny.
  • Use groups and named zones instead of individual names and raw addresses.
  • Set sensible session lifetimes. Shorter for powerful access, longer for low-risk roles.
  • Test with real scenarios and pilot groups before wide release.
  • Keep emergency access. Hold a small number of protected break-glass accounts and keep a second admin session open during changes.
  • Review on a schedule. Check zones, groups, and rules every few months, and after any network or organisation change.
  • Document and log. Name rules clearly, record why they exist, and watch the System Log.

Common mistakes

MistakeWhat goes wrongSimple fix
Broad allow rule placed highStricter rules below never runReorder from specific to general
Relaxed default ruleUnmatched users get weak protectionMake the last rule prompt or deny
Trusting the office network completelyAnyone inside gets free accessUse location with other signals
Forgetting to update zonesWrong people blocked or trustedReview zones when networks change
Changing rules with no fallbackAdministrators locked outKeep a break-glass account and second session
Asking for proof too oftenPeople get tired and look for shortcutsUse step-up and remembered devices wisely
Very long sessions for adminsA stolen session stays useful for daysUse short sessions and fresh proof
Editing a shared policy without checkingMany apps change at onceCheck which apps share the policy first
No record of changesNobody knows what broke or whyKeep a change log and review the System Log

19Real-World Usage Scenarios

Four illustrative situations that show basic policies at work.

The scenarios below are illustrative examples built from common patterns, not accounts of any one named customer.

Scenario 1: A small company with one office

A company of about a hundred people works mostly from one office. The administrator creates a zone for the office and a zone of countries where the company has no staff. The policy blocks the second zone, allows staff in the office zone with one extra proof remembered per device, and asks for an extra proof every time when staff are anywhere else. The whole setup is five rules, easy to read and easy to explain to new hires.

Scenario 2: A company with remote staff and contractors

A software company has staff working from home and a group of short-term contractors. The policy asks everyone for a second proof, and contractors are asked every sign-in with a shorter session. A separate rule for administrators demands a security key every time. Because the policy is based on groups, a contractor who becomes an employee only needs to be moved to a different group, and their rules change automatically.

Scenario 3: One sensitive app inside a friendly environment

A finance team uses a payroll app. General sign-in to Okta is relaxed on the office network. But the payroll app has its own app-level policy that always asks for a security key and expires the app session quickly. Staff enjoy smooth access to ordinary tools, while the most sensitive door has the strongest lock.

Scenario 4: A rule that locked people out

An administrator changes the office zone and mistakenly removes the correct address. Suddenly, staff in the office look like they are outside the network and start receiving frequent prompts and some denials. The System Log shows a spike of prompted sign-ins after a zone edit. Because the team keeps a change log and a second administrator session, they spot the edit, restore the address, and normal sign-in returns within minutes. The lesson is that zones, logs, and a change record all work together.

Match the lock to the door, and keep a spare key for yourself.

20Frequently Asked Questions

Quick answers to the questions people ask most.

Q1What is a sign-on policy in simple words?
It is a rulebook that tells Okta what to do when someone tries to sign in. Each rule checks facts such as who the person is and where they are, and then allows access, asks for extra proof, or denies access.
Q2What is the difference between the Okta sign-on policy and an app sign-on policy?
The Okta sign-on policy controls signing in to Okta itself and the length of the Okta session. An app sign-on policy controls opening one particular app. In the newer Identity Engine, these are called the global session policy and authentication policies.
Q3In what order are rules checked?
From top to bottom, in priority order. The first rule whose conditions match decides the action, and the rules below it are not used for that sign-in.
Q4What is the default rule or catch-all rule?
It is the last rule in a policy, which matches any sign-in that no earlier rule matched. It guarantees that every sign-in gets some answer, so it should be set to a safe action such as asking for proof.
Q5What is a network zone?
A named group of network locations, such as your office or a list of blocked regions, that rules can refer to by name. It saves you from repeating long address lists and keeps rules easy to read.
Q6Does a sign-on policy decide what I can do inside an app?
No. It decides whether and how you may get in. What you may do after entering is a separate matter called authorization, handled by app assignments, roles, and permissions.
Q7How often should people be asked for the extra proof?
It depends on risk. Ask every time for administrators and sensitive apps. For ordinary staff on trusted devices, remembering the proof for a modest period is a good balance of safety and convenience.
Q8Can a policy lock me out of Okta?
Yes, a mistake in rules or zones can block people, including administrators. Keep a second administrator session open while you change policies, and keep a protected emergency account, so you can always undo the change.
Q9Is location enough to trust a sign-in?
No. Location is a useful hint but it can be hidden or misleading. Combine it with proof of identity, device information, and risk signals instead of relying on it alone.
Q10How do I know which rule applied to a sign-in?
Check the System Log for the sign-in event and the policy evaluation details, and use a policy simulation tool if your organisation has one. Testing with sample users in each of your groups is also a reliable way to confirm what happens.
Q11Do the names in this guide match my Okta screens exactly?
Not always. Okta has more than one sign-in engine, and policy names, menus, and features can vary by engine and licence. Use the translation table in this guide, and check Okta’s current documentation for your own organisation.
Q12Where should a beginner start?
Write your rules in plain words, create your zones and groups, build a small policy with a block rule, an administrator rule, a general rule, and a safe catch-all, test it on a pilot group, and then widen the rollout while watching the System Log.

21Summary and Key Takeaways

The whole story of basic sign-on policies in one place.

A sign-on policy is Okta’s rulebook for sign-in. It is made of policies, assigned to groups, containing ordered rules, each with conditions and an action. Okta reads the rules from top to bottom, and the first match decides whether to allow, prompt for proof, or deny. Two levels work together: one guards the Okta session, and one guards each app. With clear zones, sensible session timings, a safe last rule, careful testing, and good logging, a simple policy gives strong protection without making daily work painful.

Key Takeaways

  • A policy is an ordered list of rules. Each rule has conditions and an action, and the first matching rule decides what happens.
  • Two levels guard two doors. The Okta sign-on policy, called the global session policy in the Identity Engine, guards the Okta session, and app sign-on policies, called authentication policies in the Identity Engine, guard each app.
  • Order is everything. Put narrow and strict rules first, broad rules last, and make the final catch-all rule ask for proof or deny.
  • Match strictness to risk. Use groups, network zones, device, and risk signals so administrators and sensitive apps get strong proof while everyday work stays smooth.
  • Sessions have limits. Set idle and maximum lifetimes, and use shorter sessions and fresher proof for powerful access.
  • Test, pilot, and keep a way back. Use sample users, a small pilot group, a second administrator session, and an emergency account so a mistake never becomes a lockout.
  • Watch and review. Read the System Log, keep a change log, review zones and rules on a schedule, and protect the few people who are allowed to edit policies.