Dieser Inhalt ist in der von Ihnen ausgewählten Sprache nicht verfügbar.
Chapter 77. role
Manage user roles
Usage
hammer role [OPTIONS] SUBCOMMAND [ARG] ...
# hammer role [OPTIONS] SUBCOMMAND [ARG] ...
Options
-
-h,--help– Print help
77.1. role clone Link kopierenLink in die Zwischenablage kopiert!
Clone a role
Usage
hammer role clone [OPTIONS]
# hammer role clone [OPTIONS]
Options
-
--description VALUE– Role description -
--id VALUE -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-ids LIST– REPLACE locations with given ids -
--location-title VALUE– Set the current location context for the request -
--location-titles LIST -
--locations LIST -
--name VALUE -
--new-name VALUE -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-ids LIST– REPLACE organizations with given ids. -
--organization-title VALUE– Set the current organization context for the request -
--organization-titles LIST -
--organizations LIST -
-h,--help– Print help
77.2. role create Link kopierenLink in die Zwischenablage kopiert!
Create a role
Usage
hammer role create [OPTIONS]
# hammer role create [OPTIONS]
Options
-
--description VALUE– Role description -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-ids LIST– REPLACE locations with given ids -
--location-title VALUE– Set the current location context for the request -
--location-titles LIST -
--locations LIST -
--name VALUE -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-ids LIST– REPLACE organizations with given ids. -
--organization-title VALUE– Set the current organization context for the request -
--organization-titles LIST -
--organizations LIST -
-h,--help– Print help
77.3. role delete Link kopierenLink in die Zwischenablage kopiert!
Delete a role
Usage
hammer role <delete|destroy> [OPTIONS]
# hammer role <delete|destroy> [OPTIONS]
Options
-
--id VALUE -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--name VALUE– User role name -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
-h,--help– Print help
77.4. role filters Link kopierenLink in die Zwischenablage kopiert!
List all filters
Usage
hammer role filters [OPTIONS]
# hammer role filters [OPTIONS]
Options
-
--fields LIST– Show specified fields or predefined field sets only. (See below) -
--id VALUE– User role id -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--name VALUE– User role name -
--order VALUE– Sort and order by a searchable field, e.g.<field> DESC -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
--page NUMBER– Page number, starting at 1 -
--per-page VALUE– Number of results per page to return,allto return all results -
-h,--help– Print help
Predefined field sets
| FIELDS | ALL | DEFAULT | THIN |
|---|---|---|---|
| Id | x | x | x |
| Resource type | x | x | |
| Search | x | x | |
| Unlimited? | x | x | |
| Override? | x | x | |
| Role | x | x | |
| Permissions | x | x |
77.5. role info Link kopierenLink in die Zwischenablage kopiert!
Show a role
Usage
hammer role <info|show> [OPTIONS]
# hammer role <info|show> [OPTIONS]
Options
-
--description VALUE -
--fields LIST– Show specified fields or predefined field sets only. (See below) -
--id VALUE -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--name VALUE– User role name -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
-h,--help– Print help
Predefined field sets
| FIELDS | ALL | DEFAULT | THIN |
|---|---|---|---|
| Id | x | x | x |
| Name | x | x | x |
| Builtin | x | x | |
| Description | x | x | |
| Locations/ | x | x | |
| Organizations/ | x | x |
77.6. role list Link kopierenLink in die Zwischenablage kopiert!
List all roles
Usage
hammer role <list|index> [OPTIONS]
# hammer role <list|index> [OPTIONS]
Options
-
--fields LIST– Show specified fields or predefined field sets only. (See below) -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-title VALUE– Set the current location context for the request -
--order VALUE– Sort and order by a searchable field, e.g.<field> DESC -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-title VALUE– Set the current organization context for the request -
--page NUMBER– Page number, starting at 1 -
--per-page VALUE– Number of results per page to return,allto return all results -
--search VALUE– Filter results -
-h,--help– Print help
Predefined field sets
| FIELDS | ALL | DEFAULT | THIN |
|---|---|---|---|
| Id | x | x | x |
| Name | x | x | x |
| Builtin | x | x |
Search and order fields
-
builtin– Values: true, false -
description– text -
id– integer -
locked– Values: true, false -
name– string -
permission– string
77.7. role update Link kopierenLink in die Zwischenablage kopiert!
Update a role
Usage
hammer role update [OPTIONS]
# hammer role update [OPTIONS]
Options
-
--description VALUE– Role description -
--id VALUE -
--location VALUE– Set the current location context for the request -
--location-id NUMBER– Set the current location context for the request -
--location-ids LIST– REPLACE locations with given ids -
--location-title VALUE– Set the current location context for the request -
--location-titles LIST -
--locations LIST -
--name VALUE -
--new-name VALUE -
--organization VALUE– Set the current organization context for the request -
--organization-id NUMBER– Set the current organization context for the request -
--organization-ids LIST– REPLACE organizations with given ids. -
--organization-title VALUE– Set the current organization context for the request -
--organization-titles LIST -
--organizations LIST -
-h,--help– Print help