title: Why are assigned licenses missing from the licenseAssignmentStates collection using Graph API?
body: <p>A user in my Azure AD has two license assignments, one direct and one via a group:</p>
  <p><a href="https://i.stack.imgur.com/gBbe3.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/gBbe3.png" alt="Azure AD screenshot" /></a></p>
  <p>When querying the user, one of the licenses is missing from the licenseAssignmentStates collection. The property assignedLicenses contains the other license.</p>
  <pre><code>https://graph.microsoft.com/v1.0/users/[UPN]?$select=licenseAssignmentStates,assignedLicenses
  
  {
      &quot;@odata.context&quot;: &quot;https://graph.microsoft.com/v1.0/$metadata#users(licenseAssignmentStates,assignedLicenses)/$entity&quot;,
      &quot;licenseAssignmentStates&quot;: [
          {
              &quot;skuId&quot;: &quot;18181a46-0d4e-45cd-891e-60aabd171b4e&quot;,
              &quot;disabledPlans&quot;: [],
              &quot;assignedByGroup&quot;: &quot;19f1820f-21d0-4d68-8c51-678a752168bc&quot;,
              &quot;state&quot;: &quot;Error&quot;,
              &quot;error&quot;: &quot;MutuallyExclusiveViolation&quot;
          }
      ],
      &quot;assignedLicenses&quot;: [
          {
              &quot;disabledPlans&quot;: [
                  &quot;aebd3021-9f8f-4bf8-bbe3-0ed2f4f047a1&quot;,
                  &quot;8c7d2df8-86f0-4902-b2ed-a0458298f3b3&quot;,
                  &quot;57ff2da0-773e-42df-b2af-ffb7a2317929&quot;,
                  &quot;a23b959c-7ce8-4e57-9140-b90eb88a9e97&quot;,
                  &quot;e95bec33-7c88-4a70-8e19-b10bd9d0c014&quot;,
                  &quot;5dbe027f-2339-4123-9542-606e4d348a72&quot;
              ],
              &quot;skuId&quot;: &quot;6fd2c87f-b296-42f0-b197-1e91e994b900&quot;
          }
      ]
  }
  </code></pre>
  <p>This is a huge problem, because if a license is not contained in the licenseAssignmentStates collection, it is impossible to know anything about the state of the license assignment or if it has been assigned by a group.</p>
  <p>Before adding the indirect license assignment, the direct license assignment was returned in the licenseAssignmentStates collection, so I don't think it is about that.</p>
  <p>How do I get the licenseAssignmentStates of all assigned licenses? Am I doing something wrong or is it a bug in the Graph API? If it is, what would be the best way to get it fixed quickly, we need this for our application?</p>
  <p>Thank you very much in advance!</p>