Skip to content

Conversation

@ericroberts
Copy link
Contributor

@ericroberts ericroberts commented Mar 18, 2025

Description

Adds external_id and metadata properties to both users and organizations.

Also adds a get_[resource]_by_external_id for users and organizations and deletes the now defunct get_organization_by_lookup_key method.

Documentation

Does this require changes to the WorkOS Docs? E.g. the API Reference or code snippets need updates.

[x] Yes

If yes, link a related docs PR and add a docs maintainer as a reviewer. Their approval is required.

Add a method to get users by external id.

Change organization get by lookup key which no longer works to be get by
external id.
@ericroberts ericroberts requested review from a team and faroceann March 18, 2025 19:11
@ericroberts ericroberts requested a review from a team as a code owner March 18, 2025 19:12
Eventually the API will always return something, but for now we can
default to an empty object (which is what the API will eventually
return).
@ericroberts ericroberts force-pushed the metadata-and-external-id branch from d5675d9 to 310ad09 Compare March 18, 2025 19:14
@ericroberts ericroberts changed the title Add Metadata and external id to users and organizations Add metadata and external id to users and organizations Mar 18, 2025
@ericroberts ericroberts force-pushed the metadata-and-external-id branch from c22c214 to 1c49b8f Compare March 18, 2025 21:27
@ericroberts ericroberts merged commit 81ba998 into main Mar 19, 2025
6 checks passed
@ericroberts ericroberts deleted the metadata-and-external-id branch March 19, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants