* docs: Update meta content - CLI * docs: Edits for consistency * docs: More edits for consistency * Apply batch of suggestions from code review Co-authored-by: Robin Beck <stellarsquall@users.noreply.github.com> * Apply batch suggestions from code review Co-authored-by: Robin Beck <stellarsquall@users.noreply.github.com> * docs: Remove given id references * Update read.mdx * Update read.mdx --------- Co-authored-by: Robin Beck <stellarsquall@users.noreply.github.com>
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
Plaintext
---
|
|
layout: docs
|
|
page_title: roles remove-principals - Command
|
|
description: >-
|
|
The "roles remove-principals" command removes principals from an existing role resource. Principals can be users or groups.
|
|
---
|
|
|
|
# roles remove-principals
|
|
|
|
Command: `roles remove-principals`
|
|
|
|
The `roles remove-principals` command lets you remove principals from a role.
|
|
Principals can be users or groups.
|
|
You can specify multiple principals per role.
|
|
|
|
## Example
|
|
|
|
This example removes the principals `sg_1234567890` from a role with the ID `r_1234567890`:
|
|
|
|
```shell-session
|
|
$ boundary roles remove-principals -id r_1234567890 -principal sg_1234567890
|
|
```
|
|
|
|
## Usage
|
|
|
|
<CodeBlockConfig hideClipboard>
|
|
|
|
```shell-session
|
|
$ boundary roles remove-principals [options] [args]
|
|
```
|
|
|
|
</CodeBlockConfig>
|
|
|
|
### Command options
|
|
|
|
- `-id=<string>` - The ID of the role you want to remove principals from.
|
|
- `-principal=<string>` - The principals you want to remove from the role.
|
|
Principals can be users or groups.
|
|
You can optionally specify multiple principals per role.
|
|
- `-version=<int>` The version of the role to remove principals from.
|
|
If you do not specify a version, the command performs a check-and-set automatically.
|
|
|
|
@include 'cmd-option-note.mdx' |