Skip to main content

Access Control Lists

Synopsis

Define ownership and inheritance settings for objects in your domain.

Description

Access Control Lists allow you to define owner and inheritance on any object desired. While this resource is managed by the DomainManagement module, it is possible to also define rules that apply to the configuration Naming Context.

Note that a warning is shown on objects under management that do not have an ACL definition.

Example Configuration

A reasonably simple configuration entry:

[
{
"Path": "OU=Tiering,%DomainDN%",
"Owner": "Administrators",
"NoInheritance": true,
"Optional": true
}
]

This rule will verify and if neccesarry set Administrators as owner and disable Inheritance of the custom Tiering organizational unit.

Tools

Get-ADobject -SearchBase 'OU=Contoso,DC=contoso,DC=com' -Filter * |
Get-ADSAcl |
ForEach-Object {
[PSCustomObject]@{
Owner = $_.Owner -as [String] -replace '^.+\\','%DomainName%\'
path = $_.DistinguishedName -replace 'DC=.+$','%DomainDN%'
}
} | ConvertTo-Json

This will return the ACL definitions of every object under a specific

Properties

Path

This parameter uses name resolution.

The distinguished name of the object, on which access rules are applied.

Owner

This parameter uses name resolution.

The identity that should be the owner of the targeted object(s). Accepts different kinds of input:

  • NT Account: The name-based notation for ease of reading. E.g.: %RootDomainName%\Enterprise Admins
  • SID: Maximum precision for reduced readability. E.g.: %RootDomainSID%-519
  • Privileged Group Set: To allow multiple different owners and only intercede if none of allowed owners is actual owner. E.g.: __DomainAdminsEx__

NoInheritance

Optional: Yes | Default: false

Whether inheritance should be disabled on the ADObject e.g. special permissions.

Optional

Optional: Yes | Default: false

A boolean value, accepting either true or false (note: no quotes in json!). By default, the Domain Management module will complain about an object not existing when defining an acl for an object that ... well, doesn't exist. Setting Optional to true will make it ignore it instead.

ObjectCategory

Instead of a specific path, assign ACL settings based on an Object Category. The ACL setting is applied to all objects belonging to that category.

For more information on object categories, see the Object Categories component documentation.

DefaultOwner

Switch that marks this entry as the default owner. The default owner is applied to any domain object not covered by a path or object category rule. Only one default owner can be active at a time; registering a new one replaces the previous.