#### Security

# Security overview

Grok Build's access controls answer four questions: who a person is, what a credential can do, where a request comes from, and what happened afterward. Team and organization admins manage these controls from the dashboard and the APIs that back them.

Most of these controls live on the **Security** and **API Keys** pages of the organization or team [dashboard](https://grok.com/dashboard). You need the admin role on that team or organization to change them.

## How the controls fit together

| Layer | What it controls | Where to read more |
| :--- | :--- | :--- |
| **Identity** | Who can sign in, and how accounts are created and removed. | [SSO](/build/agents-window/account/teams/sso), [SCIM](/build/agents-window/account/teams/scim), [Identity and access management](/build/agents-window/enterprise/identity-and-access-management) |
| **Credentials** | What a script, service, or integration can do without a person present. | [API keys and service tokens](/build/agents-window/security/api-keys), [Service accounts](/build/agents-window/account/enterprise/service-accounts) |
| **Sessions** | Where each person is signed in, and how to end that access. | [Session management](/build/agents-window/security/sessions) |
| **Network** | Which addresses can reach Grok Build, and which destinations agents can reach. | [Network controls](/build/agents-window/security/network-controls) |
| **OAuth Applications** | Which third-party apps can act for your users. | [OAuth applications](/build/agents-window/security/oauth-applications) |
| **Audit** | A record of security events and admin changes. | [Audit logs](/build/agents-window/enterprise/compliance-and-monitoring#audit-logs) |

## Identity

Identity is the base layer. Connect your identity provider with [SSO](/build/agents-window/account/teams/sso) so people sign in with accounts you control, and provision them with [SCIM](/build/agents-window/account/teams/scim) so access ends when someone leaves. Roles decide who can change security settings. See [Members and roles](/build/agents-window/account/teams/members).

## Credentials

A credential acts without a person present, so each one should do one job. Grok Build API keys carry a set of permissions and an expiry date that you choose when you create them. Service accounts give automation its own identity that isn't tied to an employee.

Start with [API keys and service tokens](/build/agents-window/security/api-keys).

## Sessions

Every sign-in creates a session on one client: a browser, the desktop app, the TUI, or the mobile app. Members can review and revoke their own sessions. Admins can do the same for members of their team or organization.

See [Session management](/build/agents-window/security/sessions).

## Network

Two kinds of controls apply to network traffic, and they point in opposite directions:

* **Inbound.** The IP allowlist limits the addresses your members can sign in and call Grok Build from.
* **Outbound.** Network access settings limit the destinations that agents can reach.

See [Network controls](/build/agents-window/security/network-controls).

## OAuth applications

Software outside Grok Build can act for a user, with that user's consent and within the scopes you allow. A partner or internal app sends the user to a Grok Build consent page and receives tokens for the access they approve.

See [OAuth applications](/build/agents-window/security/oauth-applications).

## Audit

Audit logs record sign-ins, credential changes, and changes to security settings. Review them in the dashboard, pull them through the Admin API, or stream them to your SIEM. See [Audit logs](/build/agents-window/enterprise/compliance-and-monitoring#audit-logs).

## Related

* [Security and privacy hardening](/build/agents-window/enterprise/security-hardening) for a recommended configuration across the whole product.
* [Privacy and data governance](/build/agents-window/enterprise/privacy-and-data-governance) for how Grok Build handles your code and data.
* [Tenancy restriction](/build/agents-window/enterprise/tenancy-restriction) for limiting your network to approved Grok Build teams.
* [Agent security](/build/agents-window/agent/security) and [Cloud Agent security](/build/agents-window/cloud-agent/security) for how agents are sandboxed.
