[GH-ISSUE #1420] How to set additional fields in auth.api.createOrganization? #26067

Closed
opened 2026-04-17 16:29:26 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @nainglinnkhant on GitHub (Feb 11, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1420

I've added an additional field called is_personal to the organization schema. Is there any way to set value for that field in auth.api.createOrganization function?

Originally created by @nainglinnkhant on GitHub (Feb 11, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1420 I've added an additional field called `is_personal` to the organization schema. Is there any way to set value for that field in auth.api.createOrganization function?
GiteaMirror added the locked label 2026-04-17 16:29:26 -05:00
Author
Owner

@Bekacru commented on GitHub (Feb 12, 2025):

additional fields aren't supported currently for organizations. You'd need to use metadata field to store it or you'd need to create a custom endpoint.

<!-- gh-comment-id:2653403024 --> @Bekacru commented on GitHub (Feb 12, 2025): additional fields aren't supported currently for organizations. You'd need to use `metadata` field to store it or you'd need to create a custom endpoint.
Author
Owner

@nazargladish commented on GitHub (Mar 15, 2025):

@Bekacru I also need this functionality. Is it safe to modify org schema directly?

<!-- gh-comment-id:2726077516 --> @nazargladish commented on GitHub (Mar 15, 2025): @Bekacru I also need this functionality. Is it safe to modify org schema directly?
Author
Owner

@elvince commented on GitHub (Mar 28, 2025):

@Bekacru
Hi,
Thanks the great work on this.

I very interested too by adding additional fields.
I read on https://www.answeroverflow.com/m/1349447761182851214 that it is already planned on your side.

Do you have any ETA?

Thanks

<!-- gh-comment-id:2760830021 --> @elvince commented on GitHub (Mar 28, 2025): @Bekacru Hi, Thanks the great work on this. I very interested too by adding additional fields. I read on https://www.answeroverflow.com/m/1349447761182851214 that it is already planned on your side. Do you have any ETA? Thanks
Author
Owner

@onefaceID commented on GitHub (Mar 28, 2025):

Actually is not possible. But I use a other table to store data about organization and link this to organization by foreign key.

<!-- gh-comment-id:2761909168 --> @onefaceID commented on GitHub (Mar 28, 2025): Actually is not possible. But I use a other table to store data about organization and link this to organization by foreign key.
Author
Owner

@kdcokenny commented on GitHub (Apr 13, 2025):

can you please create a new issue or reopen this one so we can track when this becomes a feature or other updates?

<!-- gh-comment-id:2799830939 --> @kdcokenny commented on GitHub (Apr 13, 2025): can you please create a new issue or reopen this one so we can track when this becomes a feature or other updates?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#26067