How to set additional fields in auth.api.createOrganization? #661

Closed
opened 2026-03-13 07:59:30 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @nainglinnkhant on GitHub (Feb 11, 2025).

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). 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?
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.

@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?

@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

@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.

@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?

@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#661