Added docs for data sources

This commit is contained in:
Gavin Bunney
2019-10-14 14:45:01 -07:00
parent b313c98d46
commit 08d0f58674
14 changed files with 398 additions and 206 deletions

View File

@@ -0,0 +1,38 @@
---
id: data_project_permissions_users
title: bitbucketserver_project_permissions_users
---
Retrieve a list of users that have been granted at least one permission for the specified project.
## Example Usage
```
data "bitbucketserver_project_permissions_users" "test-users" {
project = "TEST"
}
```
### Applying a Custom Filter
Find project users starting with `malcolm`.
```
data "bitbucketserver_project_permissions_users" "malcolms" {
project = "TEST"
filter = "malcolm"
}
```
## Argument Reference
* `project` - Required. Project Key to lookup permissions for.
* `filter` - Optional. If specified only user's names/emails containing the supplied string will be returned.
## Attribute Reference
* `users` - List of maps containing `name`, `email_address`, `display_name`, `active` and `permission` keys. Available permissions are:
* `PROJECT_READ`
* `PROJECT_WRITE`
* `PROJECT_ADMIN`