mirror of
https://github.com/ysoftdevs/terraform-provider-bitbucketserver.git
synced 2026-03-22 17:39:07 +01:00
Added docs for data sources
This commit is contained in:
38
docusaurus/docs/data_project_permissions_users.md
Normal file
38
docusaurus/docs/data_project_permissions_users.md
Normal 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`
|
||||
Reference in New Issue
Block a user