title: Write requests are only supported on contained entities, Microsoft Graph API when trying to PATCH/POST to assign AD App role to user
body: <p>I'm trying to assign app-specific roles to a user in our AD group using Microsoft Graph.</p>
  
  <p>The link I'm sending the request to:</p>
  
  <p><code>https://graph.microsoft.com/beta/users/{oID of the user I want to assign the role to}/appRoleAssignments/{Object ID of the AD enterprise app}</code></p>
  
  <p>Inside the request: </p>
  
  <p><code>{"id": "ID of the role I'm trying to assign to the user"}</code></p>
  
  <p>The error:</p>
  
  <p><code>"code": "BadRequest",
          "message": "Write requests are only supported on contained entities",</code></p>
  
  <p>The documentation doesn't define parameters in the example well and I've tried various possibilities but this is the only meaningful result I've gotten.</p>