{"id":497,"date":"2024-11-07T13:21:42","date_gmt":"2024-11-07T13:21:42","guid":{"rendered":"http:\/\/monkey.ploogie.co.uk\/?page_id=497"},"modified":"2024-11-07T13:21:42","modified_gmt":"2024-11-07T13:21:42","slug":"mwnci-getgroups-function","status":"publish","type":"page","link":"https:\/\/monkey.ploogie.co.uk\/index.php\/mwnci-getgroups-function\/","title":{"rendered":"Mwnci getgroups() Function"},"content":{"rendered":"<h2>Syntax<\/h2>\n<p>getgroups<strong>(<em>[string]<\/em>)<\/strong><\/p>\n<h2>Description<\/h2>\n<p>The <i>getgroups()<\/i> returns an array of Gid\u2019s that the given username belongs to.<br \/>\nIf no username is given, the information for the calling user is returned<\/p>\n<h2>Example<\/h2>\n<pre>include(\"grp\")\r\nprintln(getgroups(\"root\"))\r\nprintln(getgroups())\r\n\r\n[0]\r\n[4, 20, 24, 27, 29, 44, 46, 60, 100]\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Syntax getgroups([string]) Description The getgroups() returns an array of Gid\u2019s that the given username belongs to. If no username is given, the information for the calling user is returned Example include(&#8220;grp&#8221;) println(getgroups(&#8220;root&#8221;)) println(getgroups()) [0] [4, 20, 24, 27, 29, 44, 46, 60, 100]<\/p>\n","protected":false},"author":2,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-497","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/497","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=497"}],"version-history":[{"count":1,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/497\/revisions"}],"predecessor-version":[{"id":498,"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/pages\/497\/revisions\/498"}],"wp:attachment":[{"href":"https:\/\/monkey.ploogie.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=497"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}