Skip to content

Find user by name or email? #408

Discussion options

You must be logged in to vote

Figured it out i was using findUsers incorrectly the example has

    $us = new UserService();

    $paramArray = [
        'username' => '.', // get all users. 
        'startAt' => 0,
        'maxResults' => 1000,
        'includeInactive' => true,
        //'property' => '*',
    ];

    // get the user info.
    $users = $us->findUsers($paramArray);

switched it to

    $us = new UserService();

    $paramArray = [
        'query' => 'name/username/email'
    ];

    // get the user info.
    $users = $us->findUsers($paramArray);

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by wimg-bstuckey
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant