> For the complete documentation index, see [llms.txt](https://herd-security.gitbook.io/herd-security-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/users/app-access.md). Agents can also search and read this documentation through its [MCP server](https://herd-security.gitbook.io/herd-security-docs/~gitbook/mcp).

# App Access

What "app access" means in Herd: who gets the app, learners and admins, how to give or remove access for one person, and how app seats, invites and your identity provider fit in.

App access is what lets a person into the Herd app. Each person either has it or doesn't. They get it by signing in, through an invite, from an admin or from your identity provider, and they keep it until an admin or your identity provider takes it away. An admin who adds someone to a group with permissions gives that person the app too (see [Giving one person access](#giving-one-person-access)). Leaving a group doesn't take the app away. A dynamic group, whose members come from its conditions, never gives anyone the app.

What someone can do once they have the app comes from their groups:

* A learner has the app but isn't in any group with permissions. They can sign in and see their own training, with no admin permissions. A learner lands on **Your training** (the page at `/learn`), which lists their own trainings and links to the chatbot. See [Let People Reach Their Training from My Apps](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/users/let-people-reach-training-from-my-apps.md).
* An admin has full access to everything in your Herd workspace, including who else has access. Anyone who holds **Organization › Manage admins and permissions** is an admin, which means everyone in **Full Access**.
* People in **Operators**, **Reviewer** or a group of your own can do what those groups allow. See [Access](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/settings/access.md#access-groups).

To give someone permissions, add them to a group from the group itself or from the **Groups** button on their profile. The Users table's **Access** column, the profile header and the account menu show the groups that give a person permissions, for example **Full Access** or **Sales +2** (hover for the full list). Admins carry an admin badge.

People in your roster who haven't got the app still take training, receive simulations and use the chatbot through Slack, Teams or email. If one of them signs in, they land on **Your training**. Admins reach the same page by clicking their name and choosing **Your training**, with **Back to Herd** to return.

When someone's app access is given or removed while they have Herd open, their open tab catches up. A person given access sees **Back to Herd** on **Your training**, and someone whose access was removed is moved to **Your training** (from the HerdAI chat page, when they next open another page). That happens when they reload the tab, or when they switch back to it from another browser tab (or restore a minimized window) at least a minute after it last checked. Moving between two windows that are both on screen does not count. Someone who signed in with **Sign in with Slack** is signed out instead when their access is removed.

## Full Access is your admin group

Herd creates a **Full Access** group for your organization and keeps it holding every permission. Everyone in it is an admin.

When Full Access is your default group, giving someone the app makes them an admin. That covers assigning the Herd app (the tile) to them in your identity provider, inviting them, choosing **Give app access**, or simply signing in. To give people the app without admin permissions, leave the default group empty or pick a group with fewer permissions. See [The default group](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/settings/access.md#the-default-group).

Removing someone from **Full Access** takes away their admin rights but not the app. Your identity provider's SCIM group pushes can't add anyone to, or remove anyone from, a group that grants **Manage admins and permissions**, **Manage network access** or **Send announcements**. See [SCIM provisioning](#scim-provisioning).

## Who gets app access when they sign in

By default, everyone in your organization who signs in gets the app, as a learner. Two settings change that:

* A default group. On **Settings → General → Access → Access groups**, you can choose a group that everyone who gets the app joins. Out of the box there's none. If you make it **Full Access**, everyone who signs in becomes an admin. See [The default group](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/settings/access.md#the-default-group).
* Your identity provider. On **Settings → General → Access → Sign-in**, turn on **Let the identity provider's app-access claim decide who joins the default group**, and an app role or group from Entra, Okta or SAML decides who gets the app. See [Your identity provider decides](#your-identity-provider-decides). Not available for Google Workspace.

In an organization with no admin yet, the first person to sign in becomes the admin.

## Giving one person access

1. Open the person's page (**People › Directory**, then their name). You need **Organization › Manage admins and permissions**.
2. Select **Give app access**.

They get the app as a learner, or join your default group if you've set one, and take an app seat. If your plan's app seats are full, Herd refuses and tells you so.

Adding someone who doesn't have the app to a group with permissions gives them the app too, with the same seat check. A group can't be given its first permission while it has members without the app: Herd refuses and tells you to give them app access first, or remove them from the group. The same applies when you create a group with both people and permissions. If any of the people you picked don't have the app, the group isn't created and the dialog says so. When editing a group, save newly added people first; the permissions controls wait until you do (*Save the people you've added first, then set permissions.*).

The user page shows where someone's access came from: given by an admin, from an invite, from your identity provider, or from signing in.

## Removing it

1. Open the person's page. **Remove app access** is never offered on your own page.
2. Select **Remove app access** and confirm with **Remove access**.

The person leaves every group that grants a permission, Full Access included, and can no longer use the Herd app. Their app seat is freed and they are signed out. Their other groups, training, simulations and reports are unaffected. Giving access back later starts from scratch.

What happens at their next sign-in depends on your access settings:

* If everyone who signs in gets the app (the default), their next sign-in gives the app back, as a learner or in your default group if you've set one. While that default group is Full Access, they are an admin again.
* If your identity provider decides, their next sign-in follows your identity provider. If it still gives them the Herd app role, they get the app back, and so does the next SCIM push that carries `roles` with one of your values. To remove access for good, take the role away in your identity provider. **Remove app access** alone is not enough.

Herd refuses the removal if it would leave your organization with no admin, or if one of the groups grants a permission you don't hold yourself.

Leaving a group doesn't take the app away: someone removed from every group with permissions keeps the app as a learner. Removing someone from **Full Access** takes away their admin rights.

## Seats

Your plan's limit is counted in **app seats**. Everyone with the app takes one, learners included. Leaving a group doesn't free a seat; removing someone's app access does. Herd no longer shows a count of seats in use. It tells you when an action is refused because they're full.

* **Give app access**, and adding someone without the app to a group with permissions, refuse when the seats are full.
* A SCIM group push from your identity provider gives the app while seats last and skips the rest. Herd sends one seat alert per group per day with the count. A person the push left out has to be pushed again from your identity provider; the alert says so. A swap in one push (one person out, one in) frees the leaver's seat for the newcomer.
* A dynamic group never gives anyone the app, so a dynamic group never uses a seat. A dynamic group can't hold permissions. Everyone who meets its conditions joins it, with or without the app.
* A sign-in that would give someone the app while the seats are full does not fail. The person signs in to their own training only. An invited person keeps their invite, and their first sign-in after a seat frees up gives them the app. While your identity provider decides, the same is true as long as your identity provider still gives them the role, and Herd alerts your admins (see [When seats are full](#when-seats-are-full)).
* People without the app never take a seat.

## Invites

An invited person gets app access on their first sign-in, whatever your access settings:

* An invite from an admin does.
* **Add user** with a login does.
* CSV import does not. Neither does **Add user** without a login. Those people join the roster without the app; give them access from their page if they need it.

If the seats are full when an invited person first signs in, they sign in to their own training only and keep their invite. Their first sign-in after a seat frees up gives them the app, with no admin action needed.

## Your identity provider decides

With the identity-provider switch on, your identity provider decides who gets the Herd app. You add one role or group to the Herd app in Entra, Okta or your SAML provider, and Herd reads it each time someone signs in (the app-access claim). You never copy a list of people into Herd, and removing the role there is how you take access away from the people it gave the app to.

It works with [Microsoft Entra ID](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/azure-ad-configuration/connect-microsoft-entra-id-sso.md#send-who-gets-the-herd-app-from-entra), [Okta](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/okta/okta-single-sign-on.md#send-who-gets-the-herd-app-from-okta) and [SAML 2.0](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/connect-saml-2-0-sso.md#send-who-gets-the-herd-app-from-your-saml-identity-provider). It is not available for Google Workspace, which has no role or group Herd can read at sign-in.

### What each sign-in does

Herd checks the claim you configured against what your identity provider sent with that sign-in:

* If the claim carries one of your values, the person gets the app and takes a seat, as they do when an admin gives them access. They're a learner unless you've set a default group, in which case they join it. If that group is **Full Access**, they are an admin.
* If the claim is missing, or carries none of your values, the person sees only their own training.
* If the claim gave someone the app and no longer carries a value, they lose the app at their next sign-in and their seat is freed. Their group memberships are kept, so giving them the role again restores the same permissions. The withdrawal is recorded at their next sign-in; their open session then loses the app on its next request. One exception: if that person is your organization's last admin, Herd keeps their access and alerts your admins instead. Add another admin, then remove the role again.
* If Herd could not read the claim for that sign-in, nothing changes. The person is neither given access nor losing it.

Matching is exact: a value in Herd has to equal what your identity provider sends, character for character. A sign-in can carry at most 2,048 characters of claim value; a longer value is read as if it carried none of your values, so access the claim would have given is not granted or kept. That is another reason to filter an Okta groups claim down to the groups Herd needs.

### Access lapses after 30 days without a sign-in

Your identity provider only tells Herd about the role when someone signs in. So every night Herd removes the app access your identity provider gave to anyone who hasn't signed in through it, with the claim, for 30 days. It frees their seat and tells your admins in one message a day (**Removed app access after 30 days without a sign-in** in [Notifications](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/settings/admin-notifications.md)). If your identity provider still gives them the role, their next sign-in gives the app back. A SCIM push doesn't count as a sign-in, because it carries only changes. Your last admin is never removed this way; Herd alerts your admins instead.

### The identity provider wins

While the switch is on, the identity provider has the final say. A person your identity provider gives the role to gets the app at their next sign-in even if an admin previously chose **Remove app access** for them. Take the role away in your identity provider instead.

The claim never touches:

* Your last admin. If the claim would take the app away from your organization's last admin, Herd keeps them and alerts your admins (**Kept your last admin**). Someone who is an admin only because the claim gave them the app, and so put them in Full Access, loses it when the claim stops, like anyone else the claim gave the app, unless they are your last admin.
* Anyone an admin gave access to from their user page, and anyone who joined with an invite. An invited person who has not yet signed in still completes their invite at their first sign-in, with or without the claim.

Only access that came from the claim is withdrawn when it stops being sent.

### SCIM provisioning

If your identity provider also provisions people into Herd over [SCIM](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/settings/scim-provisioning.md), their SCIM `roles` count the same way. A user whose roles include one of your claim values gets the app. A SCIM update that sends roles without any of those values withdraws access the identity provider gave, just as a sign-in does. If your SCIM app doesn't send `roles`, SCIM leaves app access alone; only a push that includes `roles` grants or withdraws. People with access from an admin or an invite are never changed.

SCIM `roles` give the app the way a sign-in does, so the person joins your default group and, if that is **Full Access**, becomes an admin. A SCIM group push, on the other hand, can't add anyone to or remove anyone from a group that grants **Manage admins and permissions**, **Manage network access** or **Send announcements**.

In Entra, map `AppRoleAssignmentsComplex([appRoleAssignments])` to `roles` in the Herd app's provisioning attribute mappings. If both the sign-in claim and SCIM `roles` reach Herd, send the same values in each. Otherwise a sign-in grants what the next push withdraws, or the other way round. While the switch is off, Herd stores the roles but does nothing with them.

### Turning it on

Open **Settings → General → Access → Sign-in** and turn on **Let the identity provider's app-access claim decide who joins the default group**. The switch is greyed out until you have saved an app-access claim on the same card; it reads *Configure the app-access claim first*.

Herd checks the setup before it lets you turn the switch on, so that turning it on cannot lock you, or everyone else, out. It refuses, with a message that says what to do, if:

1. No app-access claim is configured ("Configure the app-access claim on your identity provider first"). Save the claim name and values under **Single sign-on**.
2. Single sign-on is not on ("Turn on single sign-on first: the app-access claim is sent by your identity provider"). The claim travels with a sign-in through your identity provider, so SSO has to be live.
3. Herd's mapping has not caught up with the claim ("Your identity provider's mapping hasn't been updated — save the app-access claim again"). Select **Save** on the claim once more.
4. Your own sign-in did not carry the role ("Sign out and back in through your identity provider with the app-access role, then try again"). Herd checks that your latest sign-in through your identity provider, made after the claim was last saved, carried one of your values. Assign yourself the role in your identity provider, sign out of Herd, sign in again through your identity provider, then turn the switch on.

While the switch is on, Herd refuses to change the app-access claim, and to turn on an identity provider of another kind (or Google Workspace): *Turn off the identity-provider switch under Sign-in* first, make the change, then turn it on again.

When you turn it on, nobody loses access right then. People are checked at their own next sign-in. People who already have the app from an invite, an admin or a sign-in keep it until an admin removes it; the claim only withdraws access it granted.

### Turning it off

Turning the switch off goes back to the default: everyone who signs in gets the app. When you turn it off while people hold access your identity provider gave them, Herd asks what happens to it (**Access from your identity provider**), with the count:

* **Keep their access**: they keep the app as if an admin had given it. Remove it person by person from their user page.
* **Remove their access**: they see only their own training and their seats are freed. You keep yours, and so does your last admin.

Herd records your answer in the audit log with the change. Turning single sign-on off while the switch is on turns it off too, and keeps those people's access as if an admin had given it. After that, only people an admin invites or gives access to get the app.

### When seats are full

If your identity provider gives someone the role but your plan's app seats are all taken, they sign in to their own training only. The next time they sign in after a seat frees up, the claim gives them the app, with no admin action needed.

Herd tells your admins when that happens, so a person you gave the role to isn't left wondering why it did not take. The alert goes to everyone who holds **Organization › Manage admins and permissions**, by Slack or Teams message, or by email when chat reaches nobody. Each refused person is reported at most once a day. It is on by default. Turn it off with the **App seats are full** row in [**Settings → Notifications**](https://herd-security.gitbook.io/herd-security-docs/setup-and-integrations/settings/admin-notifications.md). A refusal while the switch is off, or an admin's own grant hitting the cap, sends no alert, because those are refused in the page that asked.

### Changing or clearing the claim

Change the claim name or values in **Settings → General → Access → Sign-in**, under **Who your identity provider gives the Herd app**, and select **Save**; Herd shows **App-access claim saved**. The change applies at each person's next sign-in, so someone whose sign-in no longer carries one of the new values loses the app then. Check the new values against your identity provider before you save them.

**Clear** removes the claim and is refused while the switch is on, because Herd reads the claim and removing it would lock everyone out. Turn the switch off first, then clear the claim.
