Hello,
I am building a workflow where I am sending email to a distribution list. This email will contain all active directory groups of the active directory account.
I am looking to only extract the group name from the jsonpath.
Example of the jsonpath:
{
"attributes": {
"telephoneNumber": "blur",
"mail": "blur",
"accountExpires": "blur",
"displayName": "blur",
"lastLogonTimestamp": "blur",
"description": "blur",
"distinguishedName": "CN=blur,OU=blur,OU=blur,DC=blur,DC=blur",
"title": "blur",
"objectType": "blur",
"objectguid": "blur",
"memberOf": [
"CN=External,OU=blur,OU=blur,DC=blur,DC=blur",
"CN=All,OU=blur,DC=blur,DC=blur"
]
}}
My jsonpath filter is:
$âŚattributes.memberOf[?(@ =~ /(?<=CN=)(.*?)(?:,OU)/i)]
This is currently not working. The result im getting back is not correct.
Using SailPoint Developer Community
I am only looking to extract the group name here which is external, all from the memberof.
Can you please assist in why the jsonpath regex filter is not working?
Documentation reference: GitHub - json-path/JsonPath: Java JsonPath implementation