Open the console

Onboarding Steps Hidden by Permission: Showing Only What a Role Can Finish

A checklist step a viewer can't complete isn't a nudge, it's a dead end. Decide what to hide, grey out, or hand off per role.

Onboarding Steps Hidden by Permission: Showing Only What a Role Can Finish

A checklist built for one role breaks the moment a second role logs in. "Invite your team" is a reasonable first step for an account owner. It is an impossible one for a viewer who was invited by someone else and has no permission to invite anyone. If the step still shows up, checked or unchecked, the checklist is now lying about what this user can do.

This is not a rare edge case. Any product with more than one role — owner, admin, member, viewer, billing contact — has at least a few onboarding steps that only make sense for a subset of the accounts that will see them, as covered in onboarding for invited users. The question is what the checklist should do about the steps that don't apply.

Three ways a step can be wrong for a role

Not every mismatch is the same problem, and they don't all want the same fix.

  • The step is impossible for this role. "Invite your team" for a user who cannot invite anyone. No amount of effort completes it. It should not be visible.
  • The step is possible but not this role's job. "Set up billing" for a member who could technically see the billing page if an admin let them, but it isn't their task. This can often stay visible but inactive, or be reassigned rather than hidden.
  • The step is possible once something else happens. "Connect your calendar" for a viewer who will get edit rights next week. Hiding it permanently is wrong; hiding it until the permission changes is right.

Treating all three as "just filter by role" solves the first case and quietly breaks the third: a viewer who is promoted to admin mid-onboarding should see the step appear, not have to wait for a page reload that happens to re-fetch the full step list.

What breaks when you hardcode the filter

The common first implementation is a role check baked into the frontend: show this step only if role === 'admin'. It works until a product adds a second axis of permission — a custom role, a per-resource ACL, a plan-based restriction stacked on top of the role — and now every step's visibility logic lives in a conditional scattered across the checklist component, duplicated wherever the checklist renders.

The fix is to make visibility a property of the step definition, not of the rendering code, and to resolve it server-side where the permission check already lives:

type Step struct {
    Key           string
    RequiresAny   []string // permission keys; empty = visible to all
}

func visibleSteps(steps []Step, userPerms map[string]bool) []Step {
    out := make([]Step, 0, len(steps))
    for _, s := range steps {
        if len(s.RequiresAny) == 0 {
            out = append(out, s)
            continue
        }
        for _, p := range s.RequiresAny {
            if userPerms[p] {
                out = append(out, s)
                break
            }
        }
    }
    return out
}

The client never decides what a user is allowed to see. It renders whatever the server returns, which means a permission change — a promotion, a plan upgrade, a role edit by an admin — changes the next fetch's step list automatically, with no separate sync logic to maintain. The same server-side gate that is already deciding what a user can click should be the one deciding what the checklist shows them, which is the same principle behind staging steps behind a feature flag rather than a client-side check.

Hidden vs. greyed out: pick based on what the user can do about it

Hiding a step and showing it disabled send different messages, and the wrong one creates support tickets.

Hide the step when there is nothing the user can do to unlock it themselves, and seeing it would just be frustrating — a viewer and "invite your team" is this case. Showing a disabled invite step to someone who can never invite anyone doesn't motivate them, it just advertises a limitation they already know about.

Grey it out, with a reason, when the user has a path to unlock it: "Ask your admin to enable billing access" or "Available once your trial converts." This earns its screen space because it tells the user what to do next, not just that they can't do it now. A greyed step with no explanation is worse than hiding it — it reads as a bug.

What to measure instead of guessing

Nobody has pre-existing numbers on how often role mismatches cause confusion, so don't invent a completion-rate comparison across roles until you've logged the inputs. What's missing today is almost certainly an event that records, per step render, the role that saw it and whether the step was shown, hidden, or disabled. Once that exists, the question answers itself: do viewers who see a disabled "invite your team" step behave differently afterward — more support contacts, more time to activation — than viewers for whom the step was simply absent. Until that event exists, the honest answer to "does hiding steps by role help" is not instrumented.

Where to start

Audit your current step list for the steps that assume "owner" and ask, for each one, which of the three cases above it is: impossible, not-this-role's-job, or not-yet. That sort alone usually resolves most of the list without touching code. For the ones that need a real fix, move the permission check into the same server response that already builds the step list — see the checklist configuration reference — rather than adding a second place where role logic can drift from the first.

Try it on your app