Skip to main content
import { StytchB2BClient } from "@stytch/vanilla-js/b2b";
import { mountAdminPortalMemberManagement } from "@stytch/vanilla-js/b2b/adminPortal";

const stytch = new StytchB2BClient("${publicToken}");

const styles = { fontFamily: "Arial" };

mountAdminPortalMemberManagement({
  client: stytch,
  // replace this with a selector for the element where you want to render the
  // component
  element: "#stytch-admin-portal-member-management",
  styles,
});
AdminPortalMemberManagement is a drop-in component for the Organization settings page in your application. It allows Organization Members with the required RBAC roles (ie. admin) to Manage Members for their Organization. AdminPortalMemberManagement must be wrapped inside a StytchB2BProvider. Take a look at our installation guide for more information on how to configure the StytchB2BProvider for your framework. Admin Portal Member Management UI

Props

styles
object
The style configuration allows you to customize the look of the Admin Portal. You can specify some of them or none at all. We’ll use our defaults for the ones you don’t specify.
config
object
The configuration object for the Admin Portal Member Management UI.