AnsweredAssumed Answered

Query Portal for All Users

Question asked by alindley on Mar 8, 2018
Latest reply on Mar 9, 2018 by alindley

I'm trying to run a query against portal to return all the registered users, but can't figure out how to get a wildcard variable to work.

 

This works:

let queryParameters = {
  query: "username:" + portal.user.username
};
portal.queryUsers(queryParameters)
.then(function(result){
  console.log(result);
})

But I need to do something like this, which doesn't work:

let queryParameters = {
  query: "username:*"
};
portal.queryUsers(queryParameters)
.then(function(result){
  console.log(result);
})

 

Any ideas are much appreciated.

Outcomes