Reports API Methods
getCurrentGroupPath()
Returns the group path currently shown when using the sessions summary by group and activity summary by group reports. The group paths represent a path through the current report's group hierarchy.
You would want to use this to get the current level of the information hierarchy being viewed by the report user.
Examples
var currentPath = reportsApp.getReport('my-summary-repo-id').getCurrentGroupPath();
Arguments
None.
Return value
Type array[string]
An array containing the group hierarchy path for this report, in descending order.