How to create an organization without members?

HHi team, My main goal is, in the admin panel that I am creating (with admin plugin as well), create a new organization. Here's the server code:
await auth.api.createOrganization({
headers: request.headers,
body: {
name: 'org-name',
slug: 'org-slug',
keepCurrentActiveOrganization: true,
// logo: '',
},
});
await auth.api.createOrganization({
headers: request.headers,
body: {
name: 'org-name',
slug: 'org-slug',
keepCurrentActiveOrganization: true,
// logo: '',
},
});
The user who calls this method is actually an admin. How can I create this organization without members (so admin will not be added to the organization)?
Solution:
there is no method for that. But you can just call your orm to create an organization.
Jump to solution
1 Reply
Solution
bekacru
bekacru2d ago
there is no method for that. But you can just call your orm to create an organization.

Did you find this page helpful?