Estimated Reading time: 2 minutes
|
Last modified: 2021-12-31, 11:27:28 amuser-group
Usage: oredge webhook ACTION [OPTIONS]
ACTION:
create
list
modify
delete
help
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--config specify config file, default is ~/.oredge/config.
Create User-group
Usage: oredge user-group create [group-name] [OPTIONS]
OPTIONS:
--group-name string group name;
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge user-group create test
ID: 1002
List User-group
Usage: oredge user-group list [OPTIONS]
OPTIONS:
--page integer page, 1(default).
--page-size integer page size, 20(default).
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge user-group list
ID GROUPNAME
1 super-admin
2 admin
3 user
1001 test
Modify User-group
Usage: oredge user-group modify [id] [OPTIONS]
OPTIONS:
--id integer id.
--login-type string normal, ldap, can add multiple times.
--gid integer group id, can add multiple times.
--password string password, string.
--requires-password-change bool requires password change, true(default) or false.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge user-group modify 1 --gid 12 --password 123aaabbb
OK
Delete User-group
Usage: oredge user-group delete [id] [OPTIONS]
OPTIONS:
--id integer id.
--self-password string self password, string.
GLOBAL OPTIONS:
--help
--show-api print restful api request.
--json print json format.
--config specify config file, default is ~/.oredge/config.
Example
# oredge user-group delete 21
OK