Hi @Zehui Yao_MSFT ,
Thanks very much for your response. I actually got the solution. I was missing few stuffs which I edged out:
UserCollectionPage users = graphClient.users()
.buildRequest()
.filter("mail eq '" + email + "'")
.get();
List<User> currentPage = (users != null) ? users.getCurrentPage() : null;
Now we can iterate through the list if it's not null. In this case, there can be only one element max in the list as email is unique, but otherwise we can get the users based on whatever filters we use.
Thanks again,
Anurag.