DOKK / manpages / debian 12 / cdist / cdist-type__user_groups.7.en
CDIST-TYPE__USER_GROUPS(7) cdist CDIST-TYPE__USER_GROUPS(7)

cdist-type__user_groups - Manage user groups

Adds or removes a user from one or more groups.

the group to which this user should be added or removed. Can be specified multiple times.

the name of the user. Defaults to object_id
absent or present. Defaults to present.

__user_groups nginx --group webuser1 --group webuser2
# remove user nginx from groups webuser2
__user_groups nginx-webuser2 --user nginx \

--group webuser2 --state absent


Steven Armstrong <steven-cdist--@--armstrong.cc>

Copyright (C) 2012 Steven Armstrong. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

ungleich GmbH 2021

January 15, 2023 7.0.0