I would like to add additional claims for my Azure AD (ADAL) connected C# Web application.
I've tried adding a new policy in PowerShell (per https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-claims-mapping#claims-mapping-policy-assignment) and rerunning the application. The same claims show (no more, no less).
Is there a way to add the manager field. I did not see it in this list (https://docs.microsoft.com/mt-mt/azure/active-directory/develop/active-directory-claims-mapping?view=azurermps-6.9.0)
Below is the PowerShell Cmdlets I tried:
New-AzureADPolicy -Definition @('{"ClaimsMappingPolicy":{"Version":1,"IncludeBasicClaimSet":"true", "ClaimsSchema": [{"Source":"user","ID":"department","JwtClaimType":"role"},{"Source":"user","ID":"extensionattribute1","JwtClaimType":"userdata"}]}}') -DisplayName "CustomClaimsPolicy" -Type "ClaimsMappingPolicy"
Add-AzureADServicePrincipalPolicy -Id { Principal Object Id } -RefObjectId { Policy Id }
In C#, I pull the claims as follows:
var claims = User.Claims.Select(claim => new { claim.Type, claim.Value }).ToArray();