Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to use filter in user provisioning fetch API?

Mrinalini Pal
Contributor
September 9, 2021

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. 

1 answer

1 accepted

0 votes
Answer accepted
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
September 11, 2021

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events