Hi there,
I've been building a flow in Power Automate and I want to check if a user already exists based on a certain value submitted through a Microsoft Forms form.
I'm trying to do this using the Search for users (V2) function and a for each statement where it should check for users in MS365 compared to a concat it does in an earlier step. Whenever the user exists an email will be sent to the submitter of the form stating that the user already exists and they should contact the IT department.
Say that the first name is John and last name is Smith, it's concat to j.smith as the mail nickname. Nested in the for each I want to compare it to the user principal name (I've tested this with Nickname in the Search for users (V2) step as well) but for some reason it finds the name but doesn't check if it already exists.
Not sure what I'm doing wrong here.
If anyone can help me, that would be great!
Thank you in advance!
Kind regards,
Ron