mirror of
https://github.com/opentffoundation/opentf.git
synced 2026-03-09 16:00:38 -04:00
* docs/vsphere: Fix code block * docs: Convert `...` to `# ...` to allow `terraform fmt`ing * docs: Trim trailing whitespace * docs: First-pass run of `terraform fmt` on code examples
910 B
910 B
layout, page_title, sidebar_current, description
| layout | page_title | sidebar_current | description |
|---|---|---|---|
| github | GitHub: github_membership | docs-github-resource-membership | Provides a GitHub membership resource. |
github_membership
Provides a GitHub membership resource.
This resource allows you to add/remove users from your organization. When applied, an invitation will be sent to the user to become part of the organization. When destroyed, either the invitation will be cancelled or the user will be removed.
Example Usage
# Add a user to the organization
resource "github_membership" "membership_for_some_user" {
username = "SomeUser"
role = "member"
}
Argument Reference
The following arguments are supported:
username- (Required) The user to add to the organization.role- (Optional) The role of the user within the organization. Must be one ofmemberoradmin. Defaults tomember.