Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

organizations

Skill by auth0

Guides Auth0 Organizations setup for B2B multi-tenant apps built with @auth0/nextjs-auth0 v4. It covers passing an organization at login, reading org_id, backend validation, invitations, and CLI or Terraform configuration.

  • Score 81
  • 2.3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install organizations

Built from the published package, never by AI.

git clone --depth 1 https://github.com/auth0/nextjs-auth0 /tmp/nextjs-auth0 && mkdir -p ~/.claude/skills && cp -r /tmp/nextjs-auth0/skills/organizations ~/.claude/skills/organizations

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install organizations in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill explains how to use Auth0 Organizations, which represent customer boundaries inside one Auth0 tenant, with @auth0/nextjs-auth0 v4. It shows three ways to pass an organization at login: a client-level default, the /auth/login query parameter, or a Route Handler that calls startInteractiveLogin. It also explains how to read org_id from the session, validate it against a known list of organization IDs on the backend, and handle invitation links that carry both invitation and organization parameters.

The skill also covers tenant configuration through the Auth0 CLI and Terraform. It lists commands for creating organizations, adding members, enabling connections, and assigning org-level roles. It is meant for developers building B2B applications with per-customer users, SSO, and roles, and it says plainly that consumer apps should not use Organizations.

Written from the project's SKILL.md and checked against it.

What it can do

  • Pass organization at loginSets the organization on /authorize using authorizationParameters, the /auth/login query param, or startInteractiveLogin.
  • Read org_id from sessionReads org_id from session.user on the server, since it is a default ID token claim in v4.
  • Validate org_id on the backendChecks the org_id from a verified access token against a known list of organization IDs.
  • Handle invitation linksForwards both invitation and organization parameters to /auth/login when a user accepts an invite.
  • Create and manage invitationsShows the auth0 orgs invitations create command and how to verify invitations with list.
  • Configure organizations and membersCovers CLI and Terraform steps for creating orgs, adding members, and assigning org-level roles.
  • Enable login connectionsShows how to find or create a database connection and enable it for an organization and its apps.

What you need

  • An Auth0 tenant
  • @auth0/nextjs-auth0 v4 (the skill lists version 4.30.0)
  • Auth0 CLI for the command examples
  • Terraform for the Terraform resources

Try asking

  • Add Auth0 organization login to my Next.js app using org_abc123
  • Validate org_id from the access token in my API route
  • Create an Auth0 organization and send an invitation to a new user

Good to know

  • Organizations is a B2B construct and is not meant for consumer (B2C) apps
  • The Auth0 MCP server has no organizations tool, so use the CLI or Terraform
  • Invitation creation is not covered by the Terraform resources listed
  • default_redirection_uri is tenant-wide and must be an https URL

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/organizations/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Alternatives to organizations

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

organizations: common questions

Can I use Auth0 Organizations for a consumer app?

The skill says no. Organizations is for B2B multi-tenant scenarios, and consumer apps should use plain Auth0 connections in a single tenant.

Where should I read org_id from in a Next.js app?

Web and client code reads org_id from the session user. Backend APIs should validate org_id from the access token they receive.

Why does my invitation link fail with a 400 error?

The skill lists two prerequisites: the client needs organization_usage set to allow, and a default login route is required, either through the app's Application Login URI or the tenant default_redirection_uri.

How do I install organizations?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is organizations free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is organizations safe to use?

It scores 81 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to organizations?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

organizations Install

Add to stack

Loading.