---
title: "AddFolderSecurity (Opus Funktion)"
---
### Beschreibung

Setzt die angegebenen Rechte für den angegebenen Benutzer für die angegebene Datei oder das Verzeichnis.

### Argumente

<table>
<tr>
<th markdown="block">

Name

</th>
<th markdown="block">

Typ

</th>
<th markdown="block">

Beschreibung

</th>
</tr>
<tr>
<td markdown="block">

</td>
<td markdown="block">

[string](../../standard-datentypen/string.md)

</td>
<td markdown="block">

File Name

</td>
</tr>
<tr>
<td markdown="block" colspan="1">

</td>
<td markdown="block" colspan="1">

[string](../../standard-datentypen/string.md)

</td>
<td markdown="block" colspan="1">

User with Domain. Spezielle User sind "CREATOR OWNER", "SYSTEM", "Everyone"

</td>
</tr>
<tr>
<td markdown="block" colspan="1">

</td>
<td markdown="block" colspan="1">

[string](../../standard-datentypen/string.md)

</td>
<td markdown="block" colspan="1">

Rights (siehe   [Dateiberechtigungen für Dateifunktionen](dateiberechtigungen-für-dateifunktionen.md))

</td>
</tr>
<tr>
<td markdown="block" colspan="1">

</td>
<td markdown="block" colspan="1">

[string](../../standard-datentypen/string.md)

</td>
<td markdown="block" colspan="1">

"Allow" oder "Deny"

</td>
</tr>
<tr>
<td markdown="block" colspan="1">

</td>
<td markdown="block" colspan="1">

[string](../../standard-datentypen/string.md)

</td>
<td markdown="block" colspan="1">

Inheritance: "None", "AllInherit, ""ContainerInherit" oder "ObjectInherit". Dieses Feld bestimmt, welche Kinder-Objekttypen die Berechtigung erben sollen

None = keine Vererbung der Berechtigung an Kinder

ContainerInherit = Vererbung nur an Verzeichnisse (Apply to subfolders)

ObjectInherit = Vererbung nur an Dateien (Apply to files)

AllInherit = Vererbung an Verzeichnisse und Dateien (Apply to subfolders and files)

</td>
</tr>
<tr>
<td markdown="block" colspan="1">

</td>
<td markdown="block" colspan="1">

[string](../../standard-datentypen/string.md)

</td>
<td markdown="block" colspan="1">

Mit diesem Feld kann bestimmt werden, ob das Objekt selbst und/oder die Kinder die Berechtigung erhalten sollen.

| Propagation | Beschreibung |
| --- | --- |
| None | Keine Einschränkung der Vererbung an Kinder. Die Berechtigung gilt für das Verzeichnis und alle Kinder. (This folder, subfolders and/or files) |
| NoPropagateInherit | Die Kinder erhalten diese Berechtigung nicht vererbt. Nur das angegebene Verzeichnis erhält die Berechtigung. (This folder only) |
| InheritOnly | Die Berechtigung gilt ausschliesslich für Kinder des Objektes. Das angegebene Verzeichnis erhält die Berechtigung nicht. (Subfolders and/or files only) |

</td>
</tr>
</table>

### Rückgabewert [void](../../standard-datentypen/void.md)

nichts

### Beispiel

```
AddFolderSecurity("\\\\server.xyz.ch\\userhomes-students$\\"+Ls_UserName,"XYZ\\Domain Admins","FullControl","Allow","AllInherit","None");
```

### Siehe auch

---
