43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
---
|
|||
|
|
layout: docs
|
||
|
|
page_title: roles remove-grants - Command
|
||
|
|
description: |-
|
||
|
|
The "roles remove-grants" command lets you remove grants from a role.
|
||
|
|
---
|
||
|
|
|
||
|
|
# roles remove-grants
|
||
|
|
|
||
|
|
Command: `roles remove-grants`
|
||
|
|
|
||
|
|
The `roles remove-grants` command lets you remove grants from a role.
|
||
|
|
You can specify multiple grants per role.
|
||
|
|
|
||
|
|
## Example
|
||
|
|
|
||
|
|
This example removes a grant which permits read permissions from a role with the ID `r_1234567890`:
|
||
|
|
|
||
|
|
```shell-session
|
||
|
|
$ boundary roles remove-grants -id r_1234567890 -grant "id=*;type=*;actions=read"
|
||
|
|
```
|
||
|
|
|
||
|
|
## Usage
|
||
|
|
|
||
|
|
<CodeBlockConfig hideClipboard>
|
||
|
|
|
||
|
|
```shell-session
|
||
|
|
$ boundary roles remove-grants [options] [args]
|
||
|
|
```
|
||
|
|
|
||
|
|
</CodeBlockConfig>
|
||
|
|
|
||
|
|
### Command options
|
||
|
|
|
||
|
|
- `-grant=<string>` - The grants you want to remove from the role.
|
||
|
|
You can specify grants in compact string format or JSON.
|
||
|
|
If you use JSON, be sure to escape it properly.
|
||
|
|
You can optionally specify multiple grants.
|
||
|
|
- `-id=<string>` - The ID of the role you want to remove grants from.
|
||
|
|
- `-version=<int>` - The version of the role you want to remove grants from.
|
||
|
|
If you do not specify a version, the command performs a check-and-set automatically.
|
||
|
|
|
||
|
|
@include 'cmd-option-note.mdx'
|