title: Azure MS Graph Claim Mapping Policy Powershell
body: <p>I am a little confused with the MS Graph article[Vague] related to Claim Mapping Policy. I am trying to create claims using PowerShell. used below format to create new claims map getting error
  <strong>New-MgPolicyClaimMappingPolicy : Property definition has an invalid value.</strong></p>
  <p>Help is needed Here!!!</p>
  <pre><code>    $policymap=[ordered]@{
  definition=@(
  @&quot;
  {
      &quot;claimsMappingPolicy&quot; :
          {
              &quot;claimsSchema&quot;:[
                  {
                      &quot;source&quot;:&quot;user&quot;
                      &quot;id&quot;:&quot;assignedrikes&quot;
                      &quot;samlclaimtype&quot;:&quot;https://aws.amazon.com/SAML/Attributes/Role&quot;
                  },
                  {
                      &quot;source&quot;:&quot;user&quot;
                      &quot;id&quot;:&quot;assignedrikes&quot;
                      &quot;samlclaimtype&quot;:&quot;https://aws.amazon.com/SAML/Attributes/RoleSessionName&quot;
                  }
              ]
          }
      }
  &quot;@
  )
  displayname=&quot;Test&quot;
  isorganizationdefault=$false
  }
  
  New-MgPolicyClaimMappingPolicy -BodyParameter $policymap
  </code></pre>