Exactly. Just switch the example to search for user accounts instead and it should do the trick.