You can create a custom claim mapping policy with a definition similar to this:
{
"ClaimsMappingPolicy":
{
"Version":1,
"IncludeBasicClaimSet":"true",
"ClaimsSchema":[{"value":"myConstantValue","JwtClaimType":"myClaim"}]
}
}
And assign it to your application service principal.
--
Please let us know if this answer was helpful to you. If so, please remember to mark it as the answer so that others in the community with similar questions can more easily find a solution.