There are a few accounts added to a directory. I am trying to fetch the account that matches with a specific primary email. I am trying to use filter in Fetch API but I am unable to do so. Please help.
The rest call you are using is only able to filter on external id or user name, it can't filter by email.
I'm afraid your code will need to fetch all the accounts and do the filtering itself, parsing the response for the primary email address.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.