cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Validate if Office 365 user exist

Hello All

i need to validat eif a user exist in office 365 i read a sharepoint list and run a "User search" but i dont know how to know if the response is empty :(, if this is empty i undesrstand the user doesnt exist else the user existe and i get his email.

 

do u know some way to validate this

2 REPLIES 2
Memorable Member
Memorable Member

Hey @Anonymous

 

 

You could use the Search for users action to know if an user exists or not.

And then Get user profile action to get the UPN or email from the user that has been searched.

 

I recreated your Flow with your information given.

UserSearch.PNG

 

Hope this helps

 

Kind regards

 

 

Tom

 



If this reply has answered your question or solved your issue, please mark this question as answered.

Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up.

Community Support
Community Support

Hi @Anonymous,

 

Have @Tom_Slosse's answer solved your question?

 

Do you want to check if the response of the "User search" is empty?

 

You could use "Search for users" action to search the user,please refer to screenshot below to create the flow:

 

Capture.PNG

 

The expression in the condition as below:

@equals(length(body('Search_for_users')), 0)

 

The flow would run successfully to check if the user exists.

If the user exists, the flow would get the user's email as screenshot below:

Capture.PNG

 

If the user don't exists, the flow would do nothing as screenshot below:

Capture.PNG

 

 

 

 

Regards,
Alice Zhang

Helpful resources

Announcements
PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

MPA Community Blog

Power Automate Community Blog

Check out the community blog page where you can find valuable learning material from community and product team members!

Users online (4,971)