mirror of
https://github.com/ysoftdevs/terraform-provider-bitbucketserver.git
synced 2026-03-29 21:51:53 +02:00
Added docs for data sources
This commit is contained in:
41
docusaurus/docs/data_repository_permissions_users.md
Normal file
41
docusaurus/docs/data_repository_permissions_users.md
Normal file
@@ -0,0 +1,41 @@
|
||||
---
|
||||
id: data_repository_permissions_users
|
||||
title: bitbucketserver_repository_permissions_users
|
||||
---
|
||||
|
||||
Retrieve a list of users that have been granted at least one permission for the specified repository.
|
||||
|
||||
## Example Usage
|
||||
|
||||
```
|
||||
data "bitbucketserver_repository_permissions_users" "my-repo-users" {
|
||||
project = "TEST"
|
||||
repository = "my-repo"
|
||||
}
|
||||
```
|
||||
|
||||
### Applying a Custom Filter
|
||||
|
||||
Find repository users starting with `malcolm`.
|
||||
|
||||
```
|
||||
data "bitbucketserver_repository_permissions_users" "my-repo-malcolms" {
|
||||
project = "TEST"
|
||||
repository = "my-repo"
|
||||
filter = "malcolm"
|
||||
}
|
||||
```
|
||||
|
||||
## Argument Reference
|
||||
|
||||
* `project` - Required. Project Key to lookup permissions for.
|
||||
* `repository` - Required. Repository slug 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:
|
||||
|
||||
* `REPO_READ`
|
||||
* `REPO_WRITE`
|
||||
* `REPO_ADMIN`
|
||||
Reference in New Issue
Block a user