Set own provider app
set_provider_credentialsRequires sign-in (scope orgs:manage). Use the tenant's own provider app so users see its name on the consent screen. Fields per provider: google: clientId, clientSecret; microsoft: clientId, clientSecret; apple: clientId, teamId, keyId, privateKey, domainAssociation; steam: webApiKey (get_provider_setup describes each). Stored encrypted, never returned. The answer lists the redirect URIs to register in the provider console (the tenant's own hosts: its subdomain and any active custom domain) and a warning: provider account ids change when switching, so existing users match only by verified email.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tenant": "<tenant>",
"provider": "<provider>"
},
"name": "set_provider_credentials"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keyId | No | the 10-character key id | |
| teamId | No | the 10-character team id | |
| tenant | Yes | tenant slug | |
| clientId | No | the OAuth client id from Google Cloud | |
| provider | Yes | sign-in provider key, for example google, microsoft or apple (list_supported_providers shows all) | |
| webApiKey | No | optional: a Steam Web API key (32 hex characters) to fill the name and picture | |
| privateKey | No | the .p8 key file contents (PKCS8 EC key) | |
| clientSecret | No | the OAuth client secret | |
| domainAssociation | No | contents of the apple-developer-domain-association.txt file Apple gives you, served on this tenant's hosts |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes | The result of the call: the same JSON the REST API returns for this operation (docs/api, the OpenAPI document), or null when there is nothing to return. |