<PackageReference Include="System.Security.Permissions" Version="9.0.4" />

DirectoryServicesPermissionAttribute

Allows declarative DirectoryServices permission checks.
public string Path { get; set; }

Gets or sets a path to an Active Directory Domain Services node to which the permissions apply.

Gets or sets the access levels that are used in creating permissions.

Initializes a new instance of the #ctor class.