To add optional claims to an app in Microsoft Entra, follow these steps:Navigate to the App Registration portal and go to the Token Configuration pane.Select the token type (ID, Access, or SAML) and choose the desired optional claim from the list.For custom claims, go to the Enterprise Application portal, create an optional claim, and specify the claim conditions.