Automatic user provisioning creates a Kong Identity principal from any OIDC provider’s token the first time its caller authenticates, without needing to set up a Kong Identity directory, auth server, or client manually.
Every usage event’s subject resolves to principal/PRINCIPAL_UUID.
AI Cost Management attributes usage in two independent tracks: the subject and tags, which record context like project or team through a separate mechanism. This guide covers subject attribution only. See Tags and headers for the other track.
This guide attributes usage to a principal built from your own OIDC provider.
- For a full walkthrough that also covers budgets, pricing, and tag attribution, see Get started with AI Cost Management.