github.com/nathanielks/terraform@v0.6.1-0.20170509030759-13e1a62319dc/website/source/docs/providers/github/r/membership.html.markdown (about)

     1  ---
     2  layout: "github"
     3  page_title: "GitHub: github_membership"
     4  sidebar_current: "docs-github-resource-membership"
     5  description: |-
     6    Provides a GitHub membership resource.
     7  ---
     8  
     9  # github_membership
    10  
    11  Provides a GitHub membership resource.
    12  
    13  This resource allows you to add/remove users from your organization. When applied,
    14  an invitation will be sent to the user to become part of the organization. When
    15  destroyed, either the invitation will be cancelled or the user will be removed.
    16  
    17  ## Example Usage
    18  
    19  ```hcl
    20  # Add a user to the organization
    21  resource "github_membership" "membership_for_some_user" {
    22    username = "SomeUser"
    23    role     = "member"
    24  }
    25  ```
    26  
    27  ## Argument Reference
    28  
    29  The following arguments are supported:
    30  
    31  * `username` - (Required) The user to add to the organization.
    32  * `role` - (Optional) The role of the user within the organization.
    33              Must be one of `member` or `admin`. Defaults to `member`.