你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

UserSecurityContext Class

Definition

User security context contains several parameters that describe the application itself, and the end user that interacts with the application. These fields assist your security operations teams to investigate and mitigate security incidents by providing a comprehensive approach to protecting your AI applications. Learn more about protecting AI applications using Microsoft Defender for Cloud.

public class UserSecurityContext : System.ClientModel.Primitives.IJsonModel<Azure.AI.OpenAI.UserSecurityContext>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.OpenAI.UserSecurityContext>
type UserSecurityContext = class
    interface IJsonModel<UserSecurityContext>
    interface IPersistableModel<UserSecurityContext>
Public Class UserSecurityContext
Implements IJsonModel(Of UserSecurityContext), IPersistableModel(Of UserSecurityContext)
Inheritance
UserSecurityContext
Implements

Constructors

UserSecurityContext()

Properties

ApplicationName

The name of the application. Sensitive personal information should not be included in this field.

EndUserId

This identifier is the Microsoft Entra ID (formerly Azure Active Directory) user object ID used to authenticate end-users within the generative AI application. Sensitive personal information should not be included in this field.

EndUserTenantId

The Microsoft 365 tenant ID the end user belongs to. It's required when the generative AI application is multitenant.

SourceIP

Captures the original client's IP address.

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions)

Explicit Interface Implementations

IJsonModel<UserSecurityContext>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<UserSecurityContext>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<UserSecurityContext>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<UserSecurityContext>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<UserSecurityContext>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to