<aside> 🔔 This is generated documentation; DO NOT EDIT. / Generated by: Update Handbook GitHub Action / Last updated: 2024-09-28T07:09:46Z / Generated from: sourcegraph/managed-services@b149888

</aside>

This document describes operational guidance for Sourcegraph Accounts infrastructure. This service is operated on the Managed Services Platform (MSP).

If you need assistance with MSP infrastructure, reach out to the Core Services team in #discuss-core-services.

<aside> 🚨 Due to Notion limitations, we currently recreate the contents of each page entirely on updates. This means you cannot share links to sections within these pages, as the linked blocks will not persist - sourcegraph/notionreposync#7 tracks future improvements to this mechanism.

</aside>

Service overview

Operators cheat sheet

Get email domain stats

For Google sign-in abuse protection.

$ curl -s \\
        -H "Authorization: Bearer $MANAGEMENT_SECRET" \\
        <https://accounts.sourcegraph.com/api/management/v1/email-domain-stats> | jq

Create a new IdP client

$ sg sams client create \\
  --sams-server='<https://accounts.sourcegraph.com>' \\
  --redirect-uris='...' \\
  --scopes='...' \\
  my-client-name