I’m trying to configure an Event Trigger that only fires for account creation events specifically for the “Microsoft EntraID - Cloud Only Accounts” source.
So far, I’m facing issues filtering the data as expected. Here’s what I’ve tried in the Event Trigger filter field:
$.accountRequests[?(@.accountOperation=="Create")]
This works, but it includes all sources — I still have to filter by source name in my downstream logic.
$.accountRequests[?(@.provisioningTarget=="Microsoft EntraID - Cloud Only Accounts")]
This doesn’t trigger the event at all.
$.accountRequests[?(@.source.name=="Microsoft EntraID - Cloud Only Accounts")]
Also not triggering.
$.accountRequests[?(@.accountOperation=="Create" && @.source.name=="Microsoft EntraID - Cloud Only Accounts")]
This combined filter also fails to trigger.
Any insights on how to get this working via the filter expression itself?
Here is the Body, i would like to get Create operations event details directly from event trigger:
{“_metadata”: {“invocationId”: “ec700989080”,“triggerId”: “idn:post-provisioning”,“triggerType”: “fireAndForget”},“accountRequests”: [{“accountId”: “1123899”,“accountOperation”: “Modify”,“attributeRequests”: [{“attributeName”: “detectedRoles”,“attributeValue”: “MEID - APP - DirectoryABC”,“operation”: “Add”}],“provisioningResult”: “IdentityNow Task”,“provisioningTarget”: “IdentityNow”,“source”: {“id”: “IdentityNow”,“name”: “IdentityNow”,“type”: “SOURCE”},“ticketId”: null},{“accountId”: “abc”,“accountOperation”: “Create”,“attributeRequests”: [{“attributeName”: “azureADEligibleRoles”,“attributeValue”: “xyz”,“operation”: “Add”},{“attributeName”: “accountType”,“attributeValue”: “User”,“operation”: “Add”},{“attributeName”: “userPrincipalName”,“attributeValue”: “xyz@abc.onmicrosoft.com”,“operation”: “Add”},{“attributeName”: “password”,“attributeValue”: null,“operation”: “Add”},{“attributeName”: “displayName”,“attributeValue”: “xyz”,“operation”: “Add”},{“attributeName”: “mailNickname”,“attributeValue”: “xyz”,“operation”: “Add”},{“attributeName”: “accountEnabled”,“attributeValue”: “true”,“operation”: “Add”},{“attributeName”: “givenName”,“attributeValue”: “xyz”,“operation”: “Add”},{“attributeName”: “surname”,“attributeValue”: “xyz”,“operation”: “Add”},{“attributeName”: “usageLocation”,“attributeValue”: “IN”,“operation”: “Add”},{“attributeName”: “forceChangePasswordNextSignIn”,“attributeValue”: “true”,“operation”: “Add”}],“provisioningResult”: “committed”,“provisioningTarget”: “Microsoft EntraID - Cloud Only Accounts”,“source”: {“id”: “axr”,“name”: “Microsoft EntraID - Cloud Only Accounts”,“type”: “SOURCE”},“ticketId”: null}],“action”: “Access Request”,“errors”: [],“recipient”: {“id”: “7899”,“name”: “xyz”,“type”: “IDENTITY”},“requester”: {“id”: “xyz”,“name”: “1116727”,“type”: “IDENTITY”},“sources”: “Microsoft EntraID - Cloud Only Accounts, IdentityNow”,“trackingNumber”: “xyz”,“warnings”: []}