Skip to content

Commit

Permalink
feat: add local_users datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
d-strobel committed Feb 13, 2024
1 parent 5192f8f commit 25c5e21
Show file tree
Hide file tree
Showing 5 changed files with 1,370 additions and 0 deletions.
42 changes: 42 additions & 0 deletions docs/data-sources/local_users.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
page_title: "windows_local_users Data Source - terraform-provider-windows"
subcategory: "Local"
description: |-
Retrieve a list of all local users
---
# windows_local_users (Data Source)

<!-- data-source description generated from schema -->
Retrieve a list of all local users.

<!-- schema generated by tfplugindocs -->
## Schema

### Read-Only

- `users` (Attributes List) (see [below for nested schema](#nestedatt--users))

<a id="nestedatt--users"></a>
### Nested Schema for `users`

Required:

- `name` (String) Define the name of the local user.

Optional:

- `sid` (String) The security ID of the local user.

Read-Only:

- `account_expires` (String) Retrieve the time where the local user account expires.
- `description` (String) The description of the local user.
- `enabled` (Boolean) Get the status of the local user.
- `full_name` (String) The full name of the local user.
- `id` (String) The ID of the retrieved local user. This is the same as the SID.
- `last_logon` (String) The last logon time of the local user.
- `password_changeable_date` (String) The password changeable date of the local user.
- `password_expires` (String) The time when the password of the local user expires.
- `password_last_set` (String) The last time when the password was set for the local user.
- `password_required` (Boolean) If true a password is required login with the local user.
- `user_may_change_password` (Boolean) If true the local user can change it's password.
Loading

0 comments on commit 25c5e21

Please sign in to comment.