Skip to main content
All CollectionsPlatformMetrics
Metrics | How to add RoarExclude to a custom metric
Metrics | How to add RoarExclude to a custom metric
Updated over 11 months ago

Details:

There are several Liongard JMESPath extensions and functions to make JMESPath more powerful and convenient. We call these Liongard JMESPath extensions RoarPath.

In this article, we'll talk about how to leverage Liongard's RoarPath extensions to exclude users from Liongard Metric outputs.

Steps:

Let's begin with an example metric to see all enabled users:

Users[?Enabled].CN


Add in the following between the array brackets for Users to exclude enabled users from the output:

&& !contains(MemberOfStr, `RoarExclude`)


This will look like:

Users[?Enabled && !contains(MemberOfStr, `RoarExclude`)].CN


Outcome: This Metric will now exclude any users part of any group named "RoarExclude".

Did this answer your question?