title: How to set permission for Azure Active directory application in Azure DataLake Store using powershell commands
body: <p><a href="https://i.stack.imgur.com/udBQv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/udBQv.jpg" alt="enter image description here"></a></p>
  
  <p>Hi,</p>
  
  <p>I am trying to set the AAD(Azure Active Directory) application permission(read/write/execute &amp; other settings) in ADLS(Azure DataLakeStore) using powershell commands.</p>
  
  <p>I tried using below powershell command:</p>
  
  <blockquote>
    <p>Set-AzureRmDataLakeStoreItemAclEntry -AccountName "adls" -Path /
    -AceType User -Id (Get-AzureRmADApplication -ApplicationId  490eee0-2ee1-51ee-88er-0f53aerer7b).ApplicationId -Permissions All</p>
  </blockquote>
  
  <p><strong>But this command sets/displays the ApplicationId under "Access" properties in ADLS with only read/write/execute access. But this setting are not correct as I perform Manual steps of Service Authentication in ADLS.</strong></p>
  
  <p><a href="https://i.stack.imgur.com/u5ORy.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/u5ORy.jpg" alt="enter image description here"></a></p>
  
  <p>Is there any other way to set permissions of AAD application in ADLS?</p>