Sourcegraph DocsSourcegraph Docs
  • Code Intelligence

    • Cody
    • Code Search
  • Code Management

    • Batch Changes
    • Code Monitoring
    • Code Ownership
    • Code Insights
    • Notebooks
  • Platform

    • Sourcegraph Admin
    • Sourcegraph Cloud
    • Integrations
  • CLI & API

    • Sourcegraph & Cody CLI
    • Sourcegraph GraphQL API
    • Sourcegraph Stream API
  • Help & Support

    • SLAs & Premium Support
    • How to videos
    • Tutorials
    • Sourcegraph Accounts
    • Changelog
    • Technical changelog
    • Releases
  1. Docs
  2. admin
  3. organizations

Organizations

Organizations are named groups of users with an associated JSON settings file (with search scopes, saved queries, etc.). These settings take effect for all users who are members of the organization.

To create an organization, go to http(s)://[hostname]/organizations/new on your Sourcegraph instance (or, from any page, click your username and then New organization).

You (and any other organization members, and any site admin) may add or remove members from the organization's members page at http(s)://[hostname]/organizations/[org-name]/members.

To automatically join all users on your instance to a specific organization, create the organization first and then set the auth.userOrgMap site configuration option:

JSON
{ // ... "auth.userOrgMap": { // All users ("*") will be automatically joined to the "example-corp" org. // Currently "*" (all users) is the only supported key. "*": ["example-corp"] // The array values refer to org names you've already created. } // ... }

NOTE: Users will not be automatically populated to the org immediately after adding auth.userOrgMap to your site config json. Instead the org will be populated with all users upon the creation of any new user.

On this page

  1. Organizations


Edit this page on GitHub
Questions? Give us feedback