2017-01-05 20:25:04 +01:00
|
|
|
---
|
|
|
|
layout: "opsgenie"
|
|
|
|
page_title: "OpsGenie: opsgenie_user"
|
|
|
|
sidebar_current: "docs-opsgenie-datasource-user"
|
|
|
|
description: |-
|
|
|
|
Gets information about a specific user within OpsGenie
|
|
|
|
---
|
|
|
|
|
|
|
|
# opsgenie\_user
|
|
|
|
|
|
|
|
Use this data source to get information about a specific user within OpsGenie.
|
|
|
|
|
|
|
|
## Example Usage
|
|
|
|
|
|
|
|
```
|
2017-01-09 09:35:17 +01:00
|
|
|
data "opsgenie_user" "cookie_monster" {
|
2017-01-05 20:25:04 +01:00
|
|
|
username = "me@cookie-monster.com"
|
|
|
|
}
|
|
|
|
|
|
|
|
resource "opsgenie_team" "test" {
|
2017-01-09 09:35:17 +01:00
|
|
|
name = "cookieeaters"
|
|
|
|
|
|
|
|
member {
|
|
|
|
username = "${data.opsgenie_user.cookie_monster.username}"
|
|
|
|
role = "${data.opsgenie_user.cookie_monster.role}"
|
|
|
|
}
|
2017-01-05 20:25:04 +01:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Argument Reference
|
|
|
|
|
|
|
|
The following arguments are supported:
|
|
|
|
|
|
|
|
* `username` - (Required) The username (email) to use to find a user in OpsGenie.
|
|
|
|
|
|
|
|
## Attributes Reference
|
|
|
|
* `full_name` - The full name of the found user.
|
|
|
|
* `role` - The role of the found user.
|