Skip to content

feat(ui,clerk-js,shared,localizations): Add all members of a role to the SSO allow list - #9826

Draft
mauricioabreu wants to merge 7 commits into
mainfrom
mauricio-antunes/orgs-1852-add-all-members-from-a-given-role
Draft

mauricioabreu wants to merge 7 commits into
mainfrom
mauricio-antunes/orgs-1852-add-all-members-from-a-given-role

Conversation

@mauricioabreu

@mauricioabreu mauricioabreu commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Description

Allowlisting everyone with a role, every admin for example, meant picking members one at a time on the SSO allow list page.

The "Add members" card now has two tabs. Email takes a single address and adds that member. Role lists the organization's roles with their member counts; picking one adds everyone with that role who is not on the list yet, through the bulk route from clerk/clerk_go#22265 in batches of 100. Members whose email address is not served by one of the organization's connections are skipped by the backend, and the page reports how many were added and how many skipped.

For custom flows, organization.ssoBypassAllowlist gains addUsers({ userIds }), returning the added entries and the users that could not be added with the reason.

Resolves ORGS-1852.

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

@vercel

vercel Bot commented Sep 18, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
clerk-js-sandbox Ready Ready Preview Sep 19, 2026 12:50am UTC
swingset Ready Ready Preview Sep 19, 2026 12:50am UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 18, 2026

Copy link
Copy Markdown
Contributor

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true

Comment @coderabbitai help to get the list of available commands.

@changeset-bot

changeset-bot Bot commented Sep 18, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: bdf0d0d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 24 packages
Name Type
@clerk/localizations Minor
@clerk/clerk-js Minor
@clerk/shared Minor
@clerk/ui Minor
@clerk/react Patch
@clerk/chrome-extension Patch
@clerk/electron Patch
@clerk/expo Patch
@clerk/astro Patch
@clerk/backend Patch
@clerk/expo-passkeys Patch
@clerk/express Patch
@clerk/fastify Patch
@clerk/headless Patch
@clerk/hono Patch
@clerk/mosaic Patch
@clerk/msw Patch
@clerk/nextjs Patch
@clerk/nuxt Patch
@clerk/react-router Patch
@clerk/tanstack-react-start Patch
@clerk/testing Patch
@clerk/vue Patch
@clerk/swingset Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@pkg-pr-new

pkg-pr-new Bot commented Sep 18, 2026

Copy link
Copy Markdown

Open in StackBlitz

@clerk/astro

npm i https://pkg.pr.new/@clerk/astro@9826

@clerk/backend

npm i https://pkg.pr.new/@clerk/backend@9826

@clerk/chrome-extension

npm i https://pkg.pr.new/@clerk/chrome-extension@9826

@clerk/clerk-js

npm i https://pkg.pr.new/@clerk/clerk-js@9826

@clerk/electron

npm i https://pkg.pr.new/@clerk/electron@9826

@clerk/electron-passkeys

npm i https://pkg.pr.new/@clerk/electron-passkeys@9826

@clerk/eslint-plugin

npm i https://pkg.pr.new/@clerk/eslint-plugin@9826

@clerk/expo

npm i https://pkg.pr.new/@clerk/expo@9826

@clerk/expo-google-signin

npm i https://pkg.pr.new/@clerk/expo-google-signin@9826

@clerk/expo-passkeys

npm i https://pkg.pr.new/@clerk/expo-passkeys@9826

@clerk/express

npm i https://pkg.pr.new/@clerk/express@9826

@clerk/fastify

npm i https://pkg.pr.new/@clerk/fastify@9826

@clerk/hono

npm i https://pkg.pr.new/@clerk/hono@9826

@clerk/localizations

npm i https://pkg.pr.new/@clerk/localizations@9826

@clerk/mosaic

npm i https://pkg.pr.new/@clerk/mosaic@9826

@clerk/nextjs

npm i https://pkg.pr.new/@clerk/nextjs@9826

@clerk/nuxt

npm i https://pkg.pr.new/@clerk/nuxt@9826

@clerk/react

npm i https://pkg.pr.new/@clerk/react@9826

@clerk/react-router

npm i https://pkg.pr.new/@clerk/react-router@9826

@clerk/shared

npm i https://pkg.pr.new/@clerk/shared@9826

@clerk/tanstack-react-start

npm i https://pkg.pr.new/@clerk/tanstack-react-start@9826

@clerk/testing

npm i https://pkg.pr.new/@clerk/testing@9826

@clerk/ui

npm i https://pkg.pr.new/@clerk/ui@9826

@clerk/upgrade

npm i https://pkg.pr.new/@clerk/upgrade@9826

@clerk/vue

npm i https://pkg.pr.new/@clerk/vue@9826

commit: bdf0d0d

…role

The Add members card now switches between an Email tab with a single address field and a Role tab with the role select, following the updated design. Role options show how many members they cover.
The added and skipped counts used to appear in a banner above the table after the card closed. They now render as a success step inside the card with a Finish button, the way the invite flow reports its result. When nothing was added, only the skipped sentence shows.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant