create_group()
Creates a new user group on the ECM server.
The server-assigned fields (id, guid) are returned in the result.
1. Signature
-
Sync
-
Async
ecm.security.create_group(
name: str,
*,
profile_id: int = 0,
description: str = "",
) -> ECMGroup
await ecm.security.create_group(...) -> ECMGroup
2. Parameters
| Parameter | Default | Description |
|---|---|---|
|
— |
Name of the group. |
|
|
ID of the profile user assigned to the group; |
|
|
Optional description of the group. |
4. Errors
-
ECMException(or subclass) – when the server rejects the request, e.g. a duplicate group name.
6. See also
-
update_group() – change properties
-
delete_group() – delete the group
-
empty_group() – remove all members
-
add_user_to_group() – assign users
-
group() – read detail attributes