user
Description
User on this system
Fields
| ID | TYPE | DESCRIPTION |
|---|---|---|
| uid | int | User ID |
| gid | int | User's group ID |
| sid | string | User's security identifier (Windows) |
| name | string | Name of the user |
| home | string | Home folder |
| shell | string | Default shell configured |
| enabled | bool | Whether the user is enabled |
| authorizedkeys | authorizedkeys | List of authorized keys |
| sshkeys | []privatekey | List of SSH keys |
| group | group | Group of which user is a member |
Examples
Display a specific user's home directory and UID
user(name: 'vagrant') { home uid }