CREATE COHORT
Use the CREATE COHORT command to create a security cohort.
Synopsis
Syntax for creating a security
cohort:
CREATE COHORT <cohort-name> [ IN COHORT <parent-cohort> | IN NONE ]
Inputs
The CREATE COHORT command has the following inputs:
Input | Description |
---|---|
<cohort-name> | An identifier for a cohort. The name must be unique among security cohort names. Due to the total size limitation of the system security label field, use short cohort names. For compatibility with other vendors, do not use delimited identifiers, only ASCII characters, and limit name length to 30 characters. |
IN NONE | Specifies that the cohort does not have a parent cohort. IN NONE is the default if no IN clause is specified. |
IN <parent-cohort> | Places the new cohort in the cohort hierarchy as a child of <parent-cohort>. |
Outputs
The CREATE COHORT command has the following outputs:
Output | Description |
---|---|
CREATE COHORT | The message that the system returns if the command is successful. |
ERROR: permission denied. | You must have Manage Security privilege to create a security cohort. |
ERROR: object <cohort-name> already exists. | The specified cohort exists. The cohort name must be different from all other security cohorts. |
ERROR: object <parent-cohort> not found. | The parent cohort must exist before defining children. |
Description
- Privileges required
- You must have Manage Security privilege to create security cohorts.
- Common tasks
- Use CREATE COHORT to create a security cohort.
Usage
The following provides sample usage:
CREATE COHORT FINANCE IN COHORT HR;