Skip to main content

users

Description

Users configured on this system

List

[]user

Fields

IDTYPEDESCRIPTION
list[]user

Examples

Display all users and their UID

users.list { uid name }

Ensure user exists

users.one( name == 'root')

Ensure user does not exist

users.none(name == 'vagrant')

Search for a specific SID and check for its values

users.where( sid == /S-1-5-21-\d+-\d+-\d+-501/ ).list {
name != "Guest"
}