Group
Create groups and grant users and scripts to them, one by one or by script name prefix, then check or remove these rights. A user can run the scripts of the groups it belongs to. Typical uses: give a team access to a set of web services, revoke a user.
group add group create|insert|addgroup existgroup grant usergroup grant scriptgroup grant_all scriptgroup ungrant_all scriptgroup is granted usergroup is granted scriptgroup getgroup get usergroup get scriptgroup showgroup ungrant usergroup ungrant scriptgroup remove

group add <groupName>


Synonymous

    group create|insert|add

Description

    To add a new group

Parameters

    groupName:   The group name - string - required
admin
group add "test";
mentdb
Group added with successful.
Used in use cases (13 recipes)

    Versioning & deployment › First commit of a group of scripts
    Web application developer › Grant the page scripts to a group
    Application developer › New web application on its own domain
    Versioning & deployment › Change a script, see it as U, commit again and read the history
    Versioning & deployment › Hotfix: commit a single script, not the whole group
    Versioning & deployment › Review: what changed between two commits
    and 7 more in the Use cases
Often used with

    group grant script  ·  group remove  ·  script create  ·  script delete  ·  bd*  ·  file delete  ·  type is_double  ·  version commit_group

group exist <groupName>


Description

    To check if a group exists

Parameters

    groupName:   The group name - string - required
admin
group exist "test"
mentdb
1
Used in use cases (3 recipes)

    Web application developer › Tear the app down and prove it is gone
    Application developer › Audit of users, groups and script rights
    Application developer › Onboard a partner account on a web service
Often used with

    group remove  ·  script delete  ·  script is granted  ·  user exist  ·  user show groups  ·  app delete  ·  app exist  ·  app show

group grant user <login> <groupName>


Description

    To grant a user to a group

Parameters

    login:   The login - string - required
    groupName:   The group name - string - required
admin
group grant user "admin" "test";
mentdb
User granted with successful.
Used in use cases (3 recipes)

    Web application developer › Grant the page scripts to a group
    Application developer › New web application on its own domain
    Application developer › Onboard a partner account on a web service
Often used with

    group add  ·  group grant_all script  ·  group is granted user  ·  group ungrant user  ·  script is granted  ·  string generate_random_str  ·  user check password  ·  user create

group grant script <scriptName> <groupName>


Description

    To grant a script to a group

Parameters

    scriptName:   The script name - string - required
    groupName:   The group name - string - required
admin
script create post "addition" false 1 (param (var "[v1]" {type is_double [v1]} "description ..." is_null:true is_empty:true "example ...") (var "[v2]" {type is_double [v2]} "description ..." is_null:true is_empty:true "example ...") ) "description ..." { + [v1] [v2]; } "Return ..."; group grant script "addition.post" "test"
mentdb
Script granted with successful.
Used in use cases (13 recipes)

    Script developer › Grant a script to a group, then revert
    Versioning & deployment › First commit of a group of scripts
    Application developer › Version the scripts of a group
    Versioning & deployment › Change a script, see it as U, commit again and read the history
    Versioning & deployment › Hotfix: commit a single script, not the whole group
    Versioning & deployment › Review: what changed between two commits
    and 7 more in the Use cases
Often used with

    script delete  ·  script create  ·  group add  ·  group remove  ·  bd*  ·  file delete  ·  type is_double  ·  version commit_group

group grant_all script <script_starts_with> <groupName>


Description

    To grant all the scripts whose name starts with a string to a group

Parameters

    script_starts_with:   The beginning of the script name - string - required
    groupName:   The group name - string - required
admin
group grant_all script "addition." "test";
mentdb
Scripts granted with successful.
Used in use cases (3 recipes)

    Web service developer › Publish the four methods and document their URLs
    Web application developer › Grant the page scripts to a group
    Application developer › New web application on its own domain
Often used with

    group add  ·  group grant user  ·  group is granted script  ·  group is granted user  ·  app create  ·  app exist  ·  app is_granted_a  ·  app is_granted_sa

group ungrant_all script <script_starts_with> <groupName>


Description

    To ungrant all the scripts whose name starts with a string from a group

Parameters

    script_starts_with:   The beginning of the script name - string - required
    groupName:   The group name - string - required
admin
group ungrant_all script "addition." "test";
mentdb
Scripts ungranted with successful.
Used in use cases (2 recipes)

    Web service developer › Publish the four methods and document their URLs
    Web application developer › Tear the app down and prove it is gone
Often used with

    script delete  ·  app delete  ·  app exist  ·  app show  ·  app vhost delete  ·  app webserver show_all_blocked_remote_ips  ·  app webserver show_all_remote_ips  ·  atom get

group is granted user <login> <groupName>


Description

    To check if a user is granted to a group

Parameters

    login:   The login - string - required
    groupName:   The group name - string - required
admin
group is granted user "admin" "test"
mentdb
1
Used in use cases (4 recipes)

    Script developer › Grant a script to a group, then revert
    Web application developer › Grant the page scripts to a group
    Application developer › Audit of users, groups and script rights
    Application developer › New web application on its own domain
Often used with

    group get script  ·  group is granted script  ·  script is granted  ·  group add  ·  group get user  ·  group grant user  ·  group grant_all script  ·  script show groups

group is granted script <scriptName> <groupName>


Description

    To check if a script is granted to a group

Parameters

    scriptName:   The script name - string - required
    groupName:   The group name - string - required
admin
group is granted script "addition.post" "test"
mentdb
1
Used in use cases (6 recipes)

    Script developer › Grant a script to a group, then revert
    Web service developer › Publish the four methods and document their URLs
    Versioning & deployment › Retire a web service: D in versioning
    Web application developer › Grant the page scripts to a group
    Application developer › Audit of users, groups and script rights
    Versioning & deployment › Export a group to files and import it back
Often used with

    script create  ·  script delete  ·  group add  ·  group get script  ·  group grant script  ·  group is granted user  ·  script is granted  ·  string regexp_replace

group get <groupName>


Description

    To get the group

Parameters

    groupName:   The group name - string - required
admin
group get "test"
mentdb
{ "c": "admin", "k": "test", "scripts": { "addition.post": 0 }, "users": { "admin": 0 } }
Used in use cases (1 recipe)

    Application developer › Audit of users, groups and script rights
Often used with

    group exist  ·  group get script  ·  group get user  ·  group is granted script  ·  group is granted user  ·  group show  ·  script is granted  ·  script show groups

group get user <groupName>


Description

    To get the users of a group

Parameters

    groupName:   The group name - string - required
admin
group get user "test"
mentdb
{ "admin": 0 }
Used in use cases (2 recipes)

    Web application developer › Grant the page scripts to a group
    Application developer › Audit of users, groups and script rights
Often used with

    group get script  ·  group is granted script  ·  group is granted user  ·  script is granted  ·  app is_granted_a  ·  app is_granted_sa  ·  group add  ·  group exist

group get script <groupName>


Description

    To get the scripts of a group

Parameters

    groupName:   The group name - string - required
admin
group get script "test"
mentdb
{ "addition.post": 0 }
Used in use cases (5 recipes)

    Script developer › Grant a script to a group, then revert
    Versioning & deployment › First commit of a group of scripts
    Web application developer › Grant the page scripts to a group
    Application developer › Audit of users, groups and script rights
    Versioning & deployment › One deployment file: scripts and parameters
Often used with

    group add  ·  group grant script  ·  group is granted script  ·  group is granted user  ·  script create  ·  script delete  ·  script is granted  ·  bd*

group show


Description

    To show all groups

admin
group show
mentdb
{ "app": 0, "luc-yann": 0, "lib": 0, "test": 0, "luc-yann2": 0, "ai": 0, "admin": 0, "cm": 0, "sys": 0, "sample": 0, "api-mql": 0, "api-rest": 0, "bob2": 0, "public": 0, "bob": 0, "api-ai": 0, "mentdb": 0 }
Used in use cases (1 recipe)

    Application developer › Audit of users, groups and script rights
Often used with

    group exist  ·  group get  ·  group get script  ·  group get user  ·  group is granted script  ·  group is granted user  ·  script is granted  ·  script show groups

group ungrant user <login> <groupName>


Description

    To ungrant a user from a group

Parameters

    login:   The login - string - required
    groupName:   The group name - string - required
admin
group ungrant user "admin" "test";
mentdb
User ungranted with successful.
Used in use cases (2 recipes)

    Web application developer › Grant the page scripts to a group
    Application developer › Onboard a partner account on a web service
Often used with

    group add  ·  group grant user  ·  script is granted  ·  app is_granted_a  ·  app is_granted_sa  ·  group exist  ·  group get script  ·  group get user

group ungrant script <scriptName> <groupName>


Description

    To ungrant a script from a group

Parameters

    scriptName:   The script name - string - required
    groupName:   The group name - string - required
admin
group ungrant script "addition.post" "test";
mentdb
Script ungranted with successful.
Used in use cases (3 recipes)

    Script developer › Grant a script to a group, then revert
    Versioning & deployment › Retire a web service: D in versioning
    Application developer › Onboard a partner account on a web service
Often used with

    group grant script  ·  script create  ·  script delete  ·  group add  ·  group is granted script  ·  group remove  ·  script is granted  ·  type is_varchar

group remove <groupName>


Description

    To remove a group

Parameters

    groupName:   The group name - string - required
admin
group remove "test";
mentdb
Group removed with successful.
Used in use cases (12 recipes)

    Versioning & deployment › First commit of a group of scripts
    Web application developer › Tear the app down and prove it is gone
    Application developer › Onboard a partner account on a web service
    Versioning & deployment › Change a script, see it as U, commit again and read the history
    Versioning & deployment › Hotfix: commit a single script, not the whole group
    Versioning & deployment › Review: what changed between two commits
    and 6 more in the Use cases
Often used with

    script delete  ·  group add  ·  group grant script  ·  script create  ·  bd*  ·  file delete  ·  type is_double  ·  version commit_group