group
group
For examples of group workflows, see Group Workflows.
For more information on groups in the platform, see Identity & Access Management Guide.
The OLP CLI provides the following commands for managing groups:
group create
Creates a group.
olp group create <group name> [command options]Required parameters:
<group name>The name of the group.
Optional parameters:
--credentials <path to credentials file>The name of a credentials file to use with the command. Credentials files are downloaded separately from the platform portal.--profile <profile name>The name of the credentials profile to use from theolpcli.inifile.--jsonDisplays the created group in JSON format.--quietDisplays the group ID.
For more information on using credentials and profiles, see Credentials setup.
Example:
olp group create test-groupOutput:
Group GROUP-dc403eaa-791d-4e60-8293-8ed340674df1 has been createdgroup list
Retrieves all available groups.
olp group list [filter] [command options]Optional parameters:
[filter]Freeform text used to filter the group list. The filter checks if thenamefield contains thefilterstring.--credentials <path to credentials file>The name of a credentials file to use with the command. Credentials files are downloaded separately from the platform portal.--profile <profile name>The name of the credentials profile to use from theolpcli.inifile.--jsonDisplays the command result in JSON format.--quietDisplays group IDs, each on a new line.
For more information on using credentials and profiles, see Credentials setup.
Example:
olp group listOutput:
ID name
GROUP-dc403eaa-791d-4e60-8293-8ed340674df1 first-group
GROUP-ju115jwh-383g-3f74-3471-2na580191rq5 second-groupgroup delete
Deletes a specified group.
olp group delete <group ID> [command options]
WarningThis command removes the group completely, and there is no way to restore it.
Required parameters:
<group ID>The ID of the group to delete.
Optional parameters:
--credentials <path to credentials file>The name of a credentials file to use with the command. Credentials files are downloaded separately from the platform portal.--profile <profile name>The name of the credentials profile to use from theolpcli.inifile.--quietDisplays empty output with no additional information.
For more information on using credentials and profiles, see Credentials setup.
Example:
olp group delete GROUP-dc403eaa-791d-4e60-8293-8ed340674df1Output:
Group GROUP-dc403eaa-791d-4e60-8293-8ed340674df1 has been deletedUpdated 22 days ago