Skip to main content


Calling Actions from Copilot Studio

PVA and Azure AD User Information

Posted on by



Im new to the community and hope to get some help for my first PVA project in my company.

We have more then 300 employees and most times we search for a location / room number or phone number. 


I would like to facilitate it with a PVA where i enter "phonenumber" or "roomnumber" as a trigger word and with the response of the name i get the information. The information's are stored in the Azure AD.


I sift through the discussions but didn't find the right answer.


I start with the triggers, then ask for the name witch the flow get as a variable to the flow. In the flow, i use the "Search for User" But the answer ca not be take because it needs a loop. And here is my knowledge at the end.


has anyone ever built something like this or can help me ?

  • Pstork1 Profile Picture
    Pstork1 63,059 on at
    Re: PVA and Azure AD User Information

    When you search for user in a flow it always returns a collection.  The way to proceed is to use either the first() function or a loop in the flow to extract the information you want and append it to a string variable using markdown language for formatting.  Then return that string to the bot.  Whether you use first() or a loop depends on whether you want just one user's information or several if the name isn't a perfect match.


    However, I would suggest using Office 365 User Search rather than Azure AD.  The Azure AD connector will require elevated permissions that may complicate the process.

Helpful resources

Quick Links

Exciting News for Copilot Studio Communi…

Get ready to experience a whole new level of engagement with the Copilot Studio…

Celebrating the May Super User of the…

LaurensM is an exceptional contributor to the Power Platform Community…

Check out the Copilot Studio Cookbook…

We are excited to announce our new Copilot Cookbook Gallery in the Community…


WarrenBelz Profile Picture

WarrenBelz 137,998

RandyHayes Profile Picture

RandyHayes 76,308

Pstork1 Profile Picture

Pstork1 63,059


Featured topics