The gitlab_user_custom_attribute
resource allows to manage custom attributes for a user.
Upstream API: GitLab REST API docs
resource "gitlab_user_custom_attribute" "attr" {
user = "42"
key = "location"
value = "Greenland"
}
key
(String) Key for the Custom Attribute.user
(Number) The id of the user.value
(String) Value for the Custom Attribute.id
(String) The ID of this resource.Import is supported using the following syntax:
# You can import a user custom attribute using an id made up of `{user-id}:{key}`, e.g.
terraform import gitlab_user_custom_attribute.attr 42:location