Set-​Azure​Rm​Data​Lake​Store​Item​Acl​Entry

Modifies an entry in the ACL of a file or folder in Data Lake Store.

Syntax

Set-AzureRmDataLakeStoreItemAclEntry
   [-Account] <String>
   [-Path] <DataLakeStorePathInstance>
   [-AceType] <AceType>
   [[-Id] <Guid>]
   [-Default]
   [-Permissions] <Permission>
   [-PassThru]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]
Set-AzureRmDataLakeStoreItemAclEntry
   [-Account] <String>
   [-Path] <DataLakeStorePathInstance>
   [-Acl] <DataLakeStoreItemAce[]>
   [-PassThru]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The Set-AzureRmDataLakeStoreItemAclEntry cmdlet modifies an entry (ACE) in the access control list (ACL) of a file or folder in Data Lake Store.

Examples

Example 1: Modify permissions for an ACE

PS C:\>Set-AzureRmDataLakeStoreItemAclEntry -AccountName "ContosoADL" -Path / -AceType User -Id (Get-AzureRmADUser -Mail "PattiFuller@contoso.com").ObjectId -Permissions All

This command modifies the ACE for Patti Fuller to have all permissions.

Required Parameters

-Account

Specifies the name of the Data Lake Store account.

Type:String
Aliases:AccountName
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-AceType

Specifies the type of ACE to modify. The acceptable values for this parameter are:

  • User
  • Group
  • Mask
  • Other
Type:AceType
Parameter Sets:User, Group, Mask, Other
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Acl

Specifies the ACL object that contains the entries to modify.

Type:DataLakeStoreItemAce[]
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName, ByValue)
Accept wildcard characters:False
-Path

Specifies the Data Lake Store path of the item for which to modify an ACE, starting with the root directory (/).

Type:DataLakeStorePathInstance
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Permissions

Specifies the permissions for the ACE. The acceptable values for this parameter are:

  • None
  • Execute
  • Write
  • WriteExecute
  • Read
  • ReadExecute
  • ReadWrite
  • All
Type:Permission
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-Default

Indicates that this operation modifies the default ACE from the specified ACL.

Type:SwitchParameter
Position:4
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Id

Specifies the object ID of the AzureActive Directory user, group, or service principal for which to modify an ACE.

Type:Guid
Position:3
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-PassThru

Indicates the resulting ACL should be returned.

Type:SwitchParameter
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

IEnumerable<DataLakeStoreItemAce>

If PassThru is specified, will return the resulting list of ACL entries.