user-groups

The cfy user-groups command is used to define and manage user groups on Cloudify Manager.

To use the command you must have Cloudify admin credentials. If your Cloudify Manager is integrated with LDAP/AD. ensure that the group names that you define exactly match those defined in LDAP.

Requirements

Optional flags

These commands support the common CLI flags.

Commands

create

Usage

cfy user-group create [OPTIONS] USER_GROUP_NAME

Create a new user group on the manager

USER_GROUP_NAME is the name of the new user group

Optional flags

 

Example

$ cfy user-groups create users
...

Group `users` created

...

add-user

Usage

cfy user-groups add-user [OPTIONS] USERNAME

Add a user group. USERNAME is the name of the user to add to the user group

Required flags

 

Example

$ cfy user-groups add-user sue -g users
...

User `sue` added successfully to user group `users`

...

delete

Usage

cfy user-groups delete [OPTIONS] USER_GROUP_NAME

Delete a user group from Cloudify Manager. USER_GROUP_NAME is the name of the user group

 

Example

$ cfy user-group del users2
...

Deleting user group `users2`...
User group removed

...

list

Usage

cfy user-groups list [OPTIONS]

List all users assigned to this users’ group. By default, when you generate the list of user groups, only the number of linked resources are displayed. You can retrieve full details with the use of a --get-data flag.

Optional flags

 

Example

$ cfy user-group list
...

Listing all user groups...

User groups:
+-------+---------+-------+
|  name | tenants | users |
+-------+---------+-------+
| users |         |   2   |
+-------+---------+-------+

...

get

Usage

cfy user-groups get [OPTIONS] USER_GROUP_NAME

Get details for a specific user group. USER_GROUP_NAME is the name of the user group.

Optional flags

 

Example

$ cfy user-group get users
...

Getting info for user group `users`...

Requested user group info:
+-------+---------+-------+
|  name | tenants | users |
+-------+---------+-------+
| users |         |   2   |
+-------+---------+-------+

...