Cert EspressoLearn. Practise. Find your flow.

A LITTLE FOCUS.
A BIG NEXT STEP.

Your pace. Your space.
Okta · Okta Professional

Groups, manual assignment, and group rules

Okta Professional · Lesson 2 of 12 · 8:41

YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗

Learning with these videos? Subscribe for new courses and exam-style questions.

In this lesson

Okta Certified Professional exam prep, use case 1, account creation and user management. In this lesson: group types, creating groups and adding members, group rules, and how rules behave. Includes three original practice questions, with Hazelport Bakeries, a fictional chain of bakeries, as the example.

Study notes

The text of this lesson, to read at your own pace. Information as of November 2026.

Too many people, one by one

Hazelport now has hundreds of people in Okta, and every bakery, the kitchen, and the head office need different apps. Giving each app to each person, one at a time, would never keep up with new hires and moves. Groups solve this: you give access to a group once, and everyone in it follows.

Group types

Okta has several kinds of groups. Okta groups are created in the org, and you manage their members in Okta, under Directory, Groups. Other groups come from a source: Active Directory groups through the Okta AD agent, LDAP groups through the LDAP agent, and app groups imported from some apps. Two groups are built in: Everyone, which holds every user of the org, and Okta Administrators, which holds every administrator.

Creating groups

To create a group, go to Directory, Groups, choose Add Group, and give it a name and an optional description. Then you add people to it by hand, from the group's page. Groups then drive almost everything: app assignments, policies, and admin roles. So Hazelport creates a group for each team: store staff, kitchen staff, and head office.

Group rules

Group rules add users to groups automatically, based on their attributes. Go to Directory, Groups, open the Rules tab, and choose Add Rule. In the IF part, you pick a basic condition from lists, or you write an expression in the Okta Expression Language, such as a test that the department attribute equals Sales. In the THEN part, you choose one or more groups to assign, and you can list users to leave out.

How rules behave

A new rule is not active when you save it, so you must activate it before it does anything. Once active, it adds users whose attributes match, and it removes them when an attribute changes, for example after a move to another department. It works on active users, not on users who are still pending activation. And if you remove a rule member by hand, Okta adds that user to the rule's exceptions, so the rule does not add the user back.

Rule limits

Group rules have limits to remember. A rule cannot assign users to a group of administrators, and a group targeted by a rule cannot receive admin privileges. Rule expressions use Okta user attributes, not app attributes, and they must return true or false. And only super admins and org admins can edit group rules.

Manual or automatic

Manual assignment suits small groups and exceptions, such as the few people who run payroll. Group rules suit large groups that follow an attribute, such as every person in the central kitchen. Hazelport writes one rule for each department, so nobody has to update the groups by hand when people move.

Recap

Let's recap. Okta groups are managed in Okta, while directory and app groups come from their source. Everyone holds every user, and Okta Administrators every administrator. Group rules assign users to groups from their attributes, with a basic condition or an expression. A new rule does nothing until you activate it, and it removes users when they stop matching. And removing a rule member by hand makes that user an exception.

Quick checks for this lesson

The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.

  1. Which built-in group contains every user of the Hazelport org, without anyone adding them?

    • Okta Administrators
    • Everyone
    • Head office
    • An imported directory group
    Show the answer

    Everyone

    The Everyone group holds every user of the org. “Okta Administrators” is wrong, because Okta Administrators holds only the administrators. “Head office” is wrong, since Hazelport created that group itself, and people are added to it. And “An imported directory group” is wrong, because an imported directory group holds only the members it has in that directory.

  2. An administrator creates a group rule for the kitchen staff and saves it, but nobody joins the group. What is the most likely reason?

    • Rules run only once a day
    • The group has no app assigned
    • Rules apply only to new users
    • The rule is still inactive
    Show the answer

    The rule is still inactive

    A new rule is not active when saved, and it does nothing until someone activates it. “Rules run only once a day” is wrong, because an active rule is evaluated when profiles change, not once a day. “The group has no app assigned” is wrong, since a group needs no app to receive members. And “Rules apply only to new users” is wrong, because an active rule applies to the users already in the org, not only to new ones.

  3. An administrator removes a kitchen employee by hand from a group that a rule manages. Next week, the employee’s profile changes and still matches the rule. What happens?

    • The employee stays out of the group
    • The rule adds the employee back
    • Okta deactivates the employee
    • The employee moves to Everyone only
    Show the answer

    The employee stays out of the group

    Removing a rule member by hand puts the employee on the rule's exceptions, so the employee stays out. “The rule adds the employee back” is wrong, because the exception stops the rule from adding the employee back. “Okta deactivates the employee” is wrong, since a group rule never deactivates a user. And “The employee moves to Everyone only” is wrong, because the rule does not move anyone into the Everyone group, which already holds every user.