---
title: "Third-party access"
description: "Accounts, tenants and apps outside your organization that a provider says can use your identities, where they come from, and the policies that judge them."
keywords: ["third-party access", "vendor access", "cross-account role", "multi-tenant application", "Slack app", "GitHub App owner", "external account", "AWS trust policy", "Entra ID publisher"]
---

A third party is an organization outside yours that can use one of your non-human identities: a vendor's AWS account that can assume a role in yours, a multi-tenant application another company registered and you consented to, an app from outside your organization approved in your Slack org, the account that built a GitHub App installed in your organization. NHI Security records a third party only where a provider names it, links it to the identity that lets it in, and keeps the provider's statement beside the link.

No provider says whether a party is a vendor, a partner or another part of your company, so NHI Security does not either. It records the provider's identifier for the party and the name the provider gives it, if any.

## Where third parties come from

| Connector | What names a third party | Recorded as | Name shown |
|---|---|---|---|
| AWS | An `Allow` statement in a role's trust policy naming another account (its root, or a role or user in it) | AWS account | The account number. AWS gives no name |
| Microsoft Entra ID | A service principal whose application Graph says is registered in another tenant (`appOwnerOrganizationId`) | Microsoft Entra tenant | Graph's `publisherName` |
| Slack (Enterprise Grid) | An approved org app Slack reports with `is_internal: false` | Slack app | The app's name. Slack names no developer, so the app is the party |
| GitHub | A GitHub App installed in the organization whose owner (`GET /apps/{app_slug}`) is another account | GitHub account, by its numeric id | The owner's login |

The other connectors name no third party. Okta does not say who built an app, so the refresh tokens Okta issued to an app are not linked to anyone; GitLab has no equivalent of an installed third-party app. A restricted Slack app is not recorded, because it holds no access. A private GitHub App, which GitHub shows only to its owner and lets only its owner install, is treated as your organization's own. Microsoft's own first-party applications are registered in Microsoft's tenants, so Graph names them as third parties too; nothing reads a name to set them apart.

None of this needs a permission the connectors did not already have. GitHub's app owner read needs no permission at all.

**Your own accounts are left out.** An AWS account or Entra tenant that one of your organization's own connectors covers (compared without regard to case), once that connector has completed a sync, is yours, and is not listed or judged. A GitHub organization needs more: any token can read a public organization's members, so a GitHub connector makes an organization yours only once a sync has listed that organization's installed apps, which needs administrative read on it, and recorded the organization's id. Connect the account and its links stop appearing after the connector's first successful sync; nothing has to be rewritten. A connector that has never synced does not count, because its scope and credentials are not proven. An account you have not connected is listed even if it is yours, because nothing in the trust policy says so.

**Links follow the provider.** Each synchronization replaces what an identity names: a trust statement or consent removed at the provider is removed here on the next run. A party keeps the date NHI Security first saw it.

## Findings

| Policy | Severity | Raised when |
|---|---|---|
| `third_party_privileged_access` | high | The identity holds a grant the provider defines as administrative. An identity whose grants are all customer-defined is *not assessable*, never a pass |
| `third_party_access_unused` | medium | The provider reports the identity unused for longer than `unusedDays` (90 by default, 7 to 365). Only providers that report last use can raise it, which today means AWS roles |

GitHub reports neither the permissions of an installation as grants nor its last use, so a GitHub account is listed and linked but raises neither finding.

Both apply only to identities a provider names a third party for, and both are **unavailable** until some connector has named one, rather than reporting a clean result. An unused AWS role a third party can assume can raise `stale_identity` (low) as well as `third_party_access_unused`. See [Findings and risk](/nhi-security/findings-and-risk#third-party-policies).

## In the console and the API

**Identities → Third parties** lists every party, the identities that let it in, the connector each came from and the provider's statement, and filters by kind. `GET /nhi/api/v1/identities/third-parties` returns the same list and needs `identity:read`. One request returns at most 2,000 identity-to-party links and says when it stopped.

## How this was verified

Each connector's reading is tested against provider responses written to each API's documented response shape, and the storage, the exclusion of your own accounts and the policies are tested against a real PostgreSQL. None has been run against a live AWS account, Entra tenant, Slack org or GitHub organization.
