title: How to add optional claims to Azure Active Directory
body: <p>We are working on authenticating a C# MVC Web API, following the "<a href="https://docs.microsoft.com/en-us/azure/active-directory/develop/active-directory-authentication-scenarios#web-application-to-web-api" rel="nofollow noreferrer">Daemon or Server Application to Web API</a>" model and we would like to add some custom claims to the token issued by Azure Active Directory to be validated in the Web API side. </p>
  
  <p>Our initial thought is to 'add' these optional claims to the Daemon application by editing the manifest, but we could not find a good exemple and we get errors when saving it. </p>
  
  <p><img src="https://i.stack.imgur.com/SkHWW.png" alt="Manifest"></p>
  
  <p>Is there anyone that could provide us a good example of how to add this custom claims? </p>
  
  <p>Or even better, Is there any other idea about how to add these custom claims?</p>