# Users & access

Every FranchiseSEE user has a **perspective** and one or more **roles**. The perspective decides
which stores they see. The roles decide what they can do. HQ invites people, sets their access, and
organizes stores into districts and categories that the dashboards filter and rank by.

## Perspectives and store access

| Perspective | Sees |
|-------------|------|
| **Franchisor** (HQ) | Every store in the brand. |
| **Franchisee** | Only the stores assigned to them. |

A franchisee's stores come from **Single location** or **Location groups**, never both. A location
group is a named set of stores, and a member sees every store in every group they belong to. The
[user access model](https://franchisesee.com/docs/sso/user-access-model.md) covers the rules in full. An
[API token](https://franchisesee.com/docs/api/getting-started.md) or [connected AI app](https://franchisesee.com/docs/ai/data-scope-and-permissions.md)
never sees more than its user, and a franchisee's connection sees less: it never names another
store, while the web leaderboard does.

## Organizing your stores

- **Districts.** A store can sit in up to two district levels, such as a region and a market, each
  named the way your brand names it. Dashboards filter by them and Side by side groups by them.
  Where your brand has [Field visits](https://franchisesee.com/docs/features/field-visits.md), each district can also name its field
  team, whose members get the district's stores on their list.
- **Location categories.** Each store can have a category, such as a store format.
- **Ranking within a category** *(optional)*. Where this is turned on for your brand, a store's own
  dashboard ranks it only against stores in its category, so it is measured against its peers.
- **Private stores.** A store marked private ("Franchisors only") is hidden from franchisees and
  left off their leaderboards. HQ still sees it.

Your FranchiseSEE team sets up the district and category levels. HQ then adds, renames and removes
the districts and categories within them.

## Roles and permissions

Each perspective has two fixed system roles, **User** and **Admin**. HQ can also create custom
roles for either perspective, picking from permissions grouped as **General access**, **Reports &
operations** and **Administration**. Only permissions that suit the perspective can be chosen.
Custom roles can be edited at any time. A role still assigned to someone cannot be deleted. A user
with several roles gets the permissions of all of them.

## Inviting users

- **Invite user** sends an email invitation with the person's perspective, roles and store access
  already set.
- **Bulk invite franchisees** imports a spreadsheet of franchisees, each linked to a store or a
  location group, with a preview before anything is sent.

## Impersonation

HQ users with the **Impersonate franchisees** permission can choose **Impersonate user** on a
franchisee's page and see FranchiseSEE as that person sees it. **End impersonation** in the user
menu switches back. It works only for franchisee users in your own brand. HQ **Admin** carries the
permission by default.

## Sign-in and security

- **Two-factor authentication.** Users who sign in with a FranchiseSEE password can turn on
  two-factor authentication under **Security**, using an authenticator app.
- **Enterprise SSO** *(where set up)*. Users on your company's email domain sign in through your
  identity provider. HQ manages the connection and directory sync from the **SSO** settings page.
  See [Enterprise SSO onboarding](https://franchisesee.com/docs/sso/enterprise-sso-onboarding.md).
- **Automatic provisioning** *(where set up)*. Someone who signs in through your identity
  provider without an invitation is set up from their identity provider groups, as HQ or as a
  franchisee, with the basic **User** role. Anyone the groups don't place waits for an admin.

## Notifications

Where Risk assessment is turned on, users who can see it can choose a daily or weekly risk digest
email under **Notifications**. See [Risk assessment](https://franchisesee.com/docs/features/risk-assessment.md).
Where Store compliance is turned on, HQ users who can see it can choose a weekly compliance digest
there too. See [Store compliance](https://franchisesee.com/docs/features/compliance.md#weekly-digest).

## Branding

HQ can rename the score (**Score terminology**) and upload a **Primary logo** and an **Inverse
logo** for light and dark surfaces.

## Who sees it

- **HQ Admins** manage users, invitations, roles, store access, location groups, districts,
  categories, SSO and branding by default. HQ **Users** can view the brand's dashboards and reports.
- **Franchisees** see their own stores only. With **View users**, which franchisee roles carry by
  default, a franchisee sees the users at their own location. One who reaches stores through
  location groups sees only themselves.
- **Connected AI apps** can manage users and locations only through an HQ account's API token,
  with the matching permission. Franchisee connections are read-only. See
  [Data scope and permissions](https://franchisesee.com/docs/ai/data-scope-and-permissions.md).

## Related

- [Franchisee dashboard](https://franchisesee.com/docs/features/franchisee-dashboard.md): who a store is ranked against.
- [HQ dashboard](https://franchisesee.com/docs/features/franchisor-dashboard.md): filters by district, category and state.
- [Side by side](https://franchisesee.com/docs/features/side-by-side.md): compare districts, categories and states.
