-
Notifications
You must be signed in to change notification settings - Fork 301
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,17 +15,35 @@ Manages a Group within Azure Active Directory. | |
|
||
## Example Usage | ||
|
||
*Basic example* | ||
|
||
```hcl | ||
resource "azuread_group" "my_group" { | ||
name = "MyGroup" | ||
} | ||
``` | ||
|
||
*A group with members* | ||
|
||
```hcl | ||
resource "azuread_user" "my_user" { | ||
display_name = "John Doe" | ||
password = "notSecure123" | ||
user_principal_name = "[email protected]" | ||
} | ||
resource "azuread_group" "my_group" { | ||
name = "MyGroup" | ||
members = [ azuread_user.my_user.id /*, more users */ ] | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `name` - (Required) The display name for the Group. | ||
* `name` - (Required) The display name for the Group. Changing this forces a new resource to be created. | ||
* `members` (Optional) A set of users who should be members of this Group. | ||
|
||
-> **NOTE:** Group names are not unique within Azure Active Directory. | ||
|
||
|
@@ -37,6 +55,8 @@ The following attributes are exported: | |
|
||
* `name` - The Display Name of the Group. | ||
|
||
* `members` - The Group Members in the Group. | ||
|
||
## Import | ||
|
||
Azure Active Directory Groups can be imported using the `object id`, e.g. | ||
|