<@U04UQ68083H> whats the best way to create and ma...
# ory-copilot
b
@chilly-king-10285 whats the best way to create and manage teams / organizations
b
A message from kapa.ai
In Ory Network, you can create and manage organizations (teams) through both the Ory Console UI and the API. Here's how you can do it: ## Using Ory Console The Ory Console provides a user-friendly interface for managing organizations. You can: 1. Go to the User Management section 2. Access the Organizations tab 3. Create new organizations 4. Invite members and assign roles 5. Manage domains associated with the organization This is part of Ory's B2B SSO functionality, which allows you to manage team access across your applications. ## Using Ory CLI You can create organizations using the Ory CLI with this command:
Copy code
ory create organization <label> [--project=PROJECT_ID] [--domains=<http://a.example.com|a.example.com>,<http://b.example.com|b.example.com>]
Options: - `--domains strings`: A list of domains for the organization - `--project string`: The project to use (ID or slug) - `--workspace string`: The workspace to use (ID or name) [Ory CLI documentation](https://www.ory.sh/docs/cli/ory-create-organization#ory-create-organization) ## Using the API You can also manage organizations programmatically through the Ory API:
Copy code
POST /projects/{project_id}/organizations
The request body should include: - `label`: The organization's label - `domains`: List of the organization's domains Authentication is required using an Ory Workspace API key. [Ory API Reference](https://www.ory.sh/docs/reference/api) ## Organizations and B2B SSO Ory's Organizations feature is designed for B2B use cases, allowing you to: - Create separate organizations for different client companies - Enable streamlined authentication for employees of partner organizations - Manage access controls for partner organizations This is particularly useful for B2B applications where you need to manage multiple client organizations accessing your platform. For more detailed information about Organizations and B2B SSO, refer to the [Organizations and B2B Single Sign-On documentation](https://www.ory.sh/docs/kratos/organizations/).
b
@chilly-king-10285 with oss
b
A message from kapa.ai
I understand you're asking about managing organizations/teams with Ory's open-source software rather than the Ory Network. When using Ory's open-source software (OSS), the approach to managing organizations differs from the Ory Network. The organization/B2B SSO functionality is primarily available in the Ory Network commercial offering and isn't fully implemented in the open-source versions. According to the knowledge sources, there are some key differences between Ory Network and self-hosted options: - Organizations & B2B SSO is marked as available () in Ory Network but not available () in self-hosted deployments [Ory Network or self-hosted?](https://www.ory.sh/blog/ory-network-or-self-hosting-explained-use-cases) - Customer-facing multi-tenancy is available in Ory Network but not in self-hosted deployments If you're looking to implement organization/team functionality in a self-hosted Ory deployment, you would need to: 1. Use the core open-source projects (Ory Kratos, Ory Hydra, Ory Keto) 2. Implement custom organization management on top of these components 3. Use Ory Keto's permission system to model team-based access control For a self-hosted deployment, you would typically run Ory using Docker or Kubernetes as mentioned in the [Run Ory OAuth2 & OpenID Connect on Docker](https://www.ory.sh/blog/run-oauth2-server-open-source-api-security) documentation. If you need more specific guidance on implementing organization structures with Ory OSS, you might want to check the GitHub discussions or join the Ory Community Chat for community support as mentioned in the [Need Help?](https://www.ory.sh/docs/welcome#need-help) section.