© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Creating an organization from the server - Better Auth
BA
Better Auth
•
2w ago
•
12 replies
Kezlar
Creating an organization from the server
Plugins related
✅
Solved
Hello
,
I
'd like to create an organization from my server in a manner that is detached from a user session
(e
.g
. background task
, and
/or elevated admin interface
)
. Is that possible
?
https://better-auth.com/docs/plugins/organization#api-method-organization-create
seems to mention headers are required
.
@Better Auth
Solution
do you know the owner of the org at runtime
? You do not need headers if you can just pass the
userId
userId
during auth
.api
.createOrganization
Jump to solution
Recent Announcements
Similar Threads
Error creating organization
BA
Better Auth / help
13mo ago
creating an organization with teams enabled is failing
BA
Better Auth / help
9mo ago
is there a way to update the session after creating an organization?
BA
Better Auth / help
8mo ago
User as an organization
BA
Better Auth / help
12mo ago