Cheat Sheets/Power Apps/Office365Users.SearchUserV2
Power Fx function

Office365Users.SearchUserV2Power Fx function reference

Search the directory.

Syntax

powerfx
Office365Users.SearchUserV2( { searchTerm: Text [, top: Number ] } ).value

Examples

powerfx
Office365Users.SearchUserV2({searchTerm: txtFind.Text}).value
Matching users
powerfx
ClearCollect(colResults, Office365Users.SearchUserV2({searchTerm: txtFind.Text, top: 10}).value)
powerfx
ForAll(Office365Users.SearchUserV2({searchTerm: "Contoso"}).value, Collect(colStaff, {Name: displayName, Email: mail}))

Common mistakes & gotchas

Related Power Fx functions

From Connectors (real patterns)

Used in these tutorials

← Back to the Power Apps (Power Fx) cheat sheet