Start Debugging

csharp

373 posts · Page 3 of 38

How to Isolate Users and Sessions in a Foundry Hosted Microsoft Agent Framework Agent

On container protocol 2.0.0, Foundry hosted agents isolate conversations and sessions per Entra caller by default. When your own backend fronts many end users, you delegate with x-ms-user-identity, grant a custom impersonation role, and key everything your container stores by session ID plus user ID. Here is the C# for each layer and the traps that leak data between users.
Prev Next