Skip to content

Bedrock Agent Runtime  >  Structures  >  UserContext

UserContext

Structure Class

UserContext dataclass

Contains information about the user making the request. Use this to pass user identity information for access control filtering, so that retrieval results only include documents the user is authorized to access.

Attributes

user_id instance-attribute
user_id: str

The identifier of the user making the retrieval request.