Hi @Bhaskar Ray ,
You can User Principal Name(UPN) and Email both are same you can simply use GET /users/mail@contoso.onmicrosoft.com
.
- If UPN and Email both are different and if you want to fetch user based on email-id
/users?$filter=mail eq 'mail@contoso.onmicrosoft.com'
- If the requirement is to get users with a specified domain Use $filter to get all users with a mail that ends with 'a@Company portal .com'
Hope this helps.
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".