Class CreateClaimMapperRequest
H5: Create a new identity.claim_mapper PROPS row. Scope is determined by
ParentId: null for global; ApplicationId for per-app overlay;
ClaimScopeId for a Client Scope rule.
public sealed class CreateClaimMapperRequest
Inheritance
Properties
ClaimType
Claim type emitted into the token.
[Required(AllowEmptyStrings = false, ErrorMessage = "claimType is required.")]
[StringLength(200, MinimumLength = 1)]
[JsonPropertyName("claimType")]
public string ClaimType { get; set; }
ConstantValue
Constant value emitted when = Constant.
[JsonPropertyName("constantValue")]
public string? ConstantValue { get; set; }
Description
Free-form description.
[JsonPropertyName("description")]
public string? Description { get; set; }
Destinations
Token destinations: access_token, id_token. Empty defaults to both.
[JsonPropertyName("destinations")]
public string[]? Destinations { get; set; }
Enabled
When false, mapper is loaded but skipped at apply-time.
[JsonPropertyName("enabled")]
public bool Enabled { get; set; }
Name
Administrator-facing label (stored in name).
[Required(AllowEmptyStrings = false, ErrorMessage = "name is required.")]
[StringLength(200, MinimumLength = 1)]
[JsonPropertyName("name")]
public string Name { get; set; }
Order
Application order ascending; last-write-wins by claim type.
[JsonPropertyName("order")]
public int Order { get; set; }
Owner
Owner discriminator: null = global, application:{id} per-app overlay,
[JsonPropertyName("owner")]
public string? Owner { get; set; }
Required
When true, missing source value rejects token issuance with invalid_request.
[JsonPropertyName("required")]
public bool Required { get; set; }
RequiredScopes
Required scopes (subset) for the mapper to fire.
[JsonPropertyName("requiredScopes")]
public string[]? RequiredScopes { get; set; }
SourceKind
Source kind. One of: Constant, CustomClaim, UserProps.
[Required(AllowEmptyStrings = false, ErrorMessage = "sourceKind is required.")]
[JsonPropertyName("sourceKind")]
public string SourceKind { get; set; }
SourcePath
Path or key into the source. Required for CustomClaim / UserProps.
[JsonPropertyName("sourcePath")]
public string? SourcePath { get; set; }