< Back

Set-AzureRmDataLakeStoreItemAclEntry

Tue Jan 29, 2019 9:46 pm

NAME Set-AzureRmDataLakeStoreItemAclEntry



SYNOPSIS

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





SYNTAX

Set-AzureRmDataLakeStoreItemAclEntry [-Account] <String> [-Path] <DataLakeStorePathInstance> [-AceType] {User | Group | Mask | Other} [[-Id]

<Guid>] [[-Default]] [-Permissions] <Permission> [-DefaultProfile <IAzureContextContainer>] [-PassThru] [-Confirm] [-WhatIf] [<CommonParameters>]



Set-AzureRmDataLakeStoreItemAclEntry [-Account] <String> [-Path] <DataLakeStorePathInstance> [-Acl] <DataLakeStoreItemAce[]> [-DefaultProfile

<IAzureContextContainer>] [-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.





PARAMETERS

-Account <String>

Specifies the name of the Data Lake Store account.



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-AceType <AceType>

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



- User



- Group



- Mask



- Other



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Acl <DataLakeStoreItemAce[]>

Specifies the ACL object that contains the entries to modify.



Required? true

Position? 2

Default value None

Accept pipeline input? True (ByPropertyName, ByValue)

Accept wildcard characters? false



-Default [<SwitchParameter>]

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



Required? false

Position? 4

Default value False

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-DefaultProfile <IAzureContextContainer>

The credentials, account, tenant, and subscription used for communication with azure.



Required? false

Position? named

Default value None

Accept pipeline input? False

Accept wildcard characters? false



-Id <Guid>

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



Required? false

Position? 3

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-PassThru [<SwitchParameter>]

Indicates the resulting ACL should be returned.



Required? false

Position? named

Default value False

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Path <DataLakeStorePathInstance>

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



Required? true

Position? 1

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Permissions <Permission>

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



- None



- Execute



- Write



- WriteExecute



- Read



- ReadExecute



- ReadWrite



- All



Required? true

Position? 4

Default value None

Accept pipeline input? True (ByPropertyName)

Accept wildcard characters? false



-Confirm [<SwitchParameter>]

Prompts you for confirmation before running the cmdlet.



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



-WhatIf [<SwitchParameter>]

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



Required? false

Position? named

Default value False

Accept pipeline input? False

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (http://go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

DataLakeStoreItemAce[]

Parameter 'Acl' accepts value of type 'DataLakeStoreItemAce[]' from the pipeline





OUTPUTS

IEnumerable<DataLakeStoreItemAce>

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





NOTES









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.







RELATED LINKS

Online Version: https://docs.microsoft.com/en-us/powers ... emaclentry

Remove-AzureRmDataLakeStoreItemAclEntry