We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 62fa8d5 commit 14f39daCopy full SHA for 14f39da
reference/functions/useringroup.markdown
@@ -0,0 +1,21 @@
1
+---
2
+layout: default
3
+title: useringroup
4
+published: true
5
6
+
7
+[%CFEngine_function_prototype(user)%]
8
9
+**Description:** Return whether a `user` is a member of a given `group`
10
11
+Looks up the group `"group_name"` in the group database located in /etc/group and checks whether `"user_name"` is one of its members.
12
13
+[%CFEngine_function_attributes(user_name, group_name)%]
14
15
+**Example:**
16
17
+[%CFEngine_include_snippet(useringroup.cf, #\+begin_src cfengine3, .*end_src)%]
18
19
+Output:
20
21
+[%CFEngine_include_snippet(useringroup.cf, #\+begin_src\s+example_output\s*, .*end_src)%]
0 commit comments