Im using this get request to check whether the user exists in my b2c tenant or not:
var url="https://graph.microsoft.com/v1.0/users?\\$filter=signInNames