<?xml version="1.0" encoding="UTF-8"?><api:function-page xml:base="/apidoc/8.0/xdmp.groupName.xml" generated="2015-10-07T16:36:00.016766-07:00" mode="javascript" xmlns:api="http://marklogic.com/rundmc/api"><api:function-name>xdmp.groupName</api:function-name><api:suggest>xdmp.groupname</api:suggest><api:suggest>xdmp</api:suggest><api:suggest>groupname</api:suggest><api:function-link mode="xquery" fullname="xdmp:group-name">/apidoc/8.0/xdmp:group-name.xml</api:function-link><api:function mode="javascript" name="groupName" type="builtin" lib="xdmp" category="Extension" subcategory="MarkLogic Server" hidden="false" bucket="MarkLogic Built-In Functions" prefix="xdmp" namespace="http://marklogic.com/xdmp" fullname="xdmp.groupName"><api:summary>
  Returns the name of the group with the given ID.
  Returns the name of the current group if no parameter is specified.
</api:summary><api:params><api:param name="groupID" type="xs:unsignedLong" optional="true"><api:param-description>
    The ID of the group.
    The default value is the ID of the group to which the current host belongs.
  </api:param-description><api:param-name>groupID</api:param-name><api:param-type>String</api:param-type></api:param></api:params><api:return>String</api:return><api:example class="javascript"><pre xml:space="preserve" xmlns="http://www.w3.org/1999/xhtml">
xdmp.groupName(134722342511344334243);
=&gt; "Default"
</pre></api:example></api:function></api:function-page>