2023-08-27 06:17:27 +00:00
|
|
|
---
|
|
|
|
# generated by https://github.com/hashicorp/terraform-plugin-docs
|
|
|
|
page_title: "woodpecker_user Resource - terraform-provider-woodpecker"
|
|
|
|
subcategory: ""
|
|
|
|
description: |-
|
|
|
|
Provides a user resource.
|
|
|
|
This resource allows you to add/remove users. When applied, a new user will be created. When destroyed, that user will be removed.
|
|
|
|
---
|
|
|
|
|
|
|
|
# woodpecker_user (Resource)
|
|
|
|
|
|
|
|
Provides a user resource.
|
|
|
|
|
|
|
|
|
|
|
|
This resource allows you to add/remove users. When applied, a new user will be created. When destroyed, that user will be removed.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```terraform
|
|
|
|
# Create a user
|
|
|
|
resource "woodpecker_user" "test" {
|
|
|
|
login = "test"
|
|
|
|
email = "test@localhost"
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
<!-- schema generated by tfplugindocs -->
|
|
|
|
## Schema
|
|
|
|
|
|
|
|
### Required
|
|
|
|
|
|
|
|
- `login` (String) the name of the user
|
|
|
|
|
|
|
|
### Optional
|
|
|
|
|
2023-09-02 05:11:10 +00:00
|
|
|
- `avatar_url` (String) the user's avatar URL
|
2023-08-27 06:17:27 +00:00
|
|
|
- `email` (String) the email of the user
|
2023-09-02 05:11:10 +00:00
|
|
|
- `is_admin` (Boolean) whether user is an admin
|
2023-08-27 06:17:27 +00:00
|
|
|
|
|
|
|
### Read-Only
|
|
|
|
|
|
|
|
- `id` (Number) the user's id
|
2023-09-02 05:11:10 +00:00
|
|
|
- `is_active` (Boolean) whether user is active in the system
|