Skip to main content

User Configs

A user config layers the caller’s credentials on top of a service’s admin config for fields marked as user-configurable. Service-based lookups and updates use the caller’s config, but a direct userConfigId lookup does not check ownership in Collate 2.0.2. POST/PUT take serviceName (required) and userAuthConfig, shaped according to the service’s auth type. The three accessible-* endpoints back the role, database, and schema pickers in Query Runner’s UI. Use them to validate that a user’s credentials can reach a given database or schema before running a query against it.
In Collate 2.0.2, GET /v1/queryRunner/user-configs?userConfigId= can return another user’s sanitized config metadata to an authenticated caller who knows the ID. Do not treat the ID or the returned metadata as private until ownership checks are enforced.

Example

The following request creates a config for the calling user.