Skip to content

release(core): support user lookup by external identity - #9598

Open
wangsijie wants to merge 2 commits into
masterfrom
wangsijie-release-external-identity-user-lookup
Open

release(core): support user lookup by external identity#9598
wangsijie wants to merge 2 commits into
masterfrom
wangsijie-release-external-identity-user-lookup

Conversation

@wangsijie

Copy link
Copy Markdown
Contributor

Summary

Release user lookup by external identity in the Management API GET /api/users endpoint.

The endpoint now accepts identityType, identityProvider, and identityId query parameters for exact user lookup. Use identityType=social with a connector target (such as dingtalk), or identityType=sso with an enterprise SSO issuer, together with the user identifier issued by the external provider. The identity filter is combined with other search filters using AND logic.

Testing

Unit tests

Tested locally

Copilot AI balanced review requested due to automatic review settings September 14, 2026 09:57

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The public OpenAPI contract allows empty provider and identity values that the route always rejects.

Get a fresh assessment by requesting another Copilot review.

Pull request overview

Releases external-identity user lookup through the Management API.

Changes:

  • Removes the development-feature guard.
  • Publishes OpenAPI parameters and adds release notes.
  • Updates route and Swagger tests.
File summaries
File Description
.changeset/external-identity-user-lookup.md Documents the public feature.
packages/core/src/routes/admin-user/search.ts Removes the runtime feature guard.
packages/core/src/routes/admin-user/search.test.ts Removes obsolete guarded-state tests.
packages/core/src/routes/admin-user/search.openapi.json Publishes identity query parameters.
packages/core/src/routes/swagger/utils/general.test.ts Verifies parameters remain public.
Review details

Suppressed comments (1)

packages/core/src/routes/admin-user/search.openapi.json:28

  • The route also rejects an empty identityId, while the public schema accepts it. Mark this string as non-empty so API consumers receive the same constraint as the server enforces.
              "type": "string"
  • Files reviewed: 5/5 changed files
  • Comments generated: 1
  • Review effort level: Balanced

💡 Add a code-review agent skill for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/core/src/routes/admin-user/search.openapi.json
Copilot AI review requested due to automatic review settings September 14, 2026 11:39
@github-actions github-actions Bot added size/s and removed size/s labels Sep 14, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Approval recommended

The runtime behavior, API contract, tests, and changeset consistently release the previously guarded feature.

Review details
  • Files reviewed: 5/5 changed files
  • Comments generated: 0 new
  • Review effort level: Balanced

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants