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,36 @@
---
id: data_global_permissions_users
title: bitbucketserver_global_permissions_users
---
Retrieve a list of users that have been granted at least one global permission.
## Example Usage
```
data "bitbucketserver_global_permissions_users" "all" { }
```
### Applying a Custom Filter
Find any users starting with `malcolm`.
```
data "bitbucketserver_global_permissions_users" "malcolms" {
filter = "malcolm"
}
```
## Argument Reference
* `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: `LICENSED_USER`, `PROJECT_CREATE`, `ADMIN`, `SYS_ADMIN`
* `LICENSED_USER`
* `PROJECT_CREATE`
* `ADMIN`
* `SYS_ADMIN`