create_group
Creates a new Active Directory security or distribution group with specified scope and attributes, failing if the group already exists.
Instructions
Create a new group in Active Directory.
Creates security or distribution groups with specified scope and attributes. Supports Global, DomainLocal, and Universal scopes.
Example:
create_group(group_name="Marketing Team", group_scope="Global", group_type="Security", description="Marketing department")
Fails if a group with that name already exists.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ou | No | Organizational Unit DN to create group in | |
| group_name | Yes | Group name (sAMAccountName) | |
| group_type | No | Group type (Security, Distribution) | Security |
| description | No | Group description | |
| group_scope | No | Group scope (Global, DomainLocal, Universal) | Global |
| display_name | No | Display name for the group | |
| additional_attributes | No | Additional attributes to set |