> ## Documentation Index
> Fetch the complete documentation index at: https://stytch.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Admin Portal Overview

> Add Admin Portal to your React application

Admin Portal is a set of drop-in components that allow you to add full-featured Org Management UI to your application.

Admin Portal provides:

* [`AdminPortalMemberManagement`](https://stytch.com/docs/api-reference/b2b/frontend-sdks/react/prebuilt-ui/admin-portal/member-management) - allows Members (Represents an individual end user's account within a given Organization, uniquely identified within that Organization by their email address.) of the Organization (Represents an instance or tenant in your application, typically mapping to each of your top-level customers.) to invite new Members and manage existing Members
* [`AdminPortalOrgSettings`](https://stytch.com/docs/api-reference/b2b/frontend-sdks/react/prebuilt-ui/admin-portal/organization-settings) - allows Members of the Organization to manage their own Organization settings, including authentication methods and JIT provisioning settings.
* [`AdminPortalSSO`](https://stytch.com/docs/api-reference/b2b/frontend-sdks/react/prebuilt-ui/admin-portal/sso) - allows Members of the Organization to manage their own SSO connections
* [`AdminPortalSCIM`](https://stytch.com/docs/api-reference/b2b/frontend-sdks/react/prebuilt-ui/admin-portal/scim) - allows Members of the Organization to manage their own SCIM connections

Want to see the Admin Portal in action?  Log into your [Stytch Dashboard](https://stytch.com/dashboard/settings/team) and check out the Team, Access Settings, SSO, and SCIM pages. These are all built with Admin Portal!

> [tab] Member management
>
> ![Admin Portal Member Management UI](https://mintcdn.com/stytch-34ca0595/ZVUUFsqZuqcX7gxa/images/api-reference/b2b/frontend-sdks/admin-portal-member-management.png?fit=max\&auto=format\&n=ZVUUFsqZuqcX7gxa\&q=85\&s=518e57a5f94a311108cfeec8ff4c37c2)

> [tab] Organization settings
>
> ![Admin Portal Organization Settings UI](https://mintcdn.com/stytch-34ca0595/ZVUUFsqZuqcX7gxa/images/api-reference/b2b/frontend-sdks/admin-portal-organzation-settings.png?fit=max\&auto=format\&n=ZVUUFsqZuqcX7gxa\&q=85\&s=9f9a66d0560cf6b4a19d0ae4f9201e51)

> [tab] SSO
>
> ![Admin Portal SSO Management UI](https://mintcdn.com/stytch-34ca0595/ZVUUFsqZuqcX7gxa/images/api-reference/b2b/frontend-sdks/admin-portal-sso.png?fit=max\&auto=format\&n=ZVUUFsqZuqcX7gxa\&q=85\&s=f3fd54656b732bfe502c164dcb8a116b)

> [tab] SCIM
>
> ![Admin Portal SCIM Management UI](https://mintcdn.com/stytch-34ca0595/ZVUUFsqZuqcX7gxa/images/api-reference/b2b/frontend-sdks/admin-portal-scim.png?fit=max\&auto=format\&n=ZVUUFsqZuqcX7gxa\&q=85\&s=6962e2e541541627e1319854e3fec76a)

## Add Admin Portal to your application

**1. Before you start**

Complete all the steps in the [installation guide](https://stytch.com/docs/api-reference/b2b/frontend-sdks/react/installation.md)

**2. Create a route for each Admin Portal component**

```jsx theme={null}
import { Routes, Route } from 'react-router';

function App() {
  return (
    <Routes>
      <Route path="settings">
        <Route path="members" />
        <Route path="organization" />
        <Route path="sso" />
        <Route path="scim" />
      </Route>
    </Routes>
  );
}
```

Typically, these routes will live wherever you have other "settings" type pages for the Organization.

**3. Add the Admin Portal components to the routes**

```jsx theme={null}
import { Routes, Route } from 'react-router';
import {
  AdminPortalMemberManagement,
  AdminPortalOrgSettings,
  AdminPortalSSO,
  AdminPortalSCIM
} from "@stytch/react/b2b/adminPortal";

// Optional: customize the styles of the Admin Portal components
const styles = { colors: { primary: "#000000" } };

// Optional: set custom configurations
const config = {
  getRoleDisplayName: (role: string) => {
    return role.charAt(0).toUpperCase() + role.slice(1);
  },
}

function App() {
  return (
    <Routes>
      <Route path="admin">
        <Route path="members" element={<AdminPortalMemberManagement styles={styles} config={config} />} />
        <Route path="organization" element={<AdminPortalOrgSettings styles={styles} config={config} />} />
        <Route path="sso" element={<AdminPortalSSO styles={styles} config={config} />} />
        <Route path="scim" element={<AdminPortalSCIM styles={styles} config={config} />} />
      </Route>
    </Routes>
  );
}
```

**4. Test the Admin Portal components**

That's it! You can now test the Admin Portal components by navigating to the routes you created.

## RBAC considerations

Admin Portal respects all RBAC policies configured in your [Stytch Dashboard](https://stytch.com/dashboard/rbac).  Use the resources prefixed with `stytch.` to control who can access and update settings in the Admin Portal.

For example, in the `AdminPortalMemberManagement` component, only Members with permission to `search` on `stytch.member` will be able to view and search for Members.

Read the [RBAC guide](https://stytch.com/docs/multi-tenant-auth/enterprise-ready/rbac/create-rbac-policy.md) for more information about configuring RBAC policies.
