title: Getting 401 error on Megento 2.1.10 using access token with an intergration user
body: <p>I am a 3rd party developer trying to update stock quantity via access token/integration/REST method and I have run into a 401 error.</p>
  
  <p>I am testing using SoapUI and also through my application I am developing and I get the same error.</p>
  
  <p>VB Code</p>
  
  <pre><code>Dim Access_Token = "mXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX4"
  Dim WebClient = New WebClient() 
  WebClient.Headers(HttpRequestHeader.ContentType) = "application/json"
  WebClient.Headers(HttpRequestHeader.Authorization) = "Authorization Bearer " &amp; Access_Token
  Dim Response As String
  Response = WebClient.UploadString("http://www.XXXX.com/rest/V1/products/MXXXP/stockItems/1", "Put", "{""stockItem"":{""qty"":100}}")
  </code></pre>
  
  <p>I have setup the integration, give it access to all and activated it to get the access token.</p>
  
  <p>The full error is:</p>
  
  <pre><code>{"message":"Consumer is not authorized to access %resources","parameters":{"resources":"Magento_CatalogInventory::cataloginventory"}}
  </code></pre>
  
  <p>Any help would be apricated.
  Thanks,
  Richard.</p>