Query a list of accounts including DISABLED ones through the Gerrit REST API

24 views
Skip to first unread message

Vitalii Kulanov

unread,
Jun 27, 2017, 5:26:22 AM6/27/17
to Repo and Gerrit Discussion
I use Gerrit REST API to query users accounts (2.13.8). But as far as I understand if account is disabled it won't be displayed in Search Results. So how can I determined in a query whether account is DISABLED (through the REST, but not 'gerrit gsql'). The only thing that I can do is just to get status of specific account through the REST.

Edwin Kempin

unread,
Jun 27, 2017, 5:29:15 AM6/27/17
to Vitalii Kulanov, Repo and Gerrit Discussion
By default the account query only returns active accounts.
You can get inactive accounts by specifying "is:inactive" in the query. If you want all accounts add "(is:active OR is:inactive)".

On Tue, Jun 27, 2017 at 11:20 AM, Vitalii Kulanov <vit...@kulanov.org.ua> wrote:
I use Gerrit REST API to query users accounts (2.13.8). But as far as I understand if account is disabled it won't be displayed in Search Results. So how can I determined in a query whether account is DISABLED (through the REST, but not 'gerrit gsql'). The only thing that I can do is just to get status of specific account through the REST.

--
--
To unsubscribe, email repo-discuss+unsubscribe@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vitalii Kulanov

unread,
Jun 27, 2017, 8:35:05 AM6/27/17
to Repo and Gerrit Discussion, vit...@kulanov.org.ua
Thanks, it works.

вторник, 27 июня 2017 г., 12:29:15 UTC+3 пользователь Edwin Kempin написал:
By default the account query only returns active accounts.
You can get inactive accounts by specifying "is:inactive" in the query. If you want all accounts add "(is:active OR is:inactive)".
On Tue, Jun 27, 2017 at 11:20 AM, Vitalii Kulanov <vit...@kulanov.org.ua> wrote:
I use Gerrit REST API to query users accounts (2.13.8). But as far as I understand if account is disabled it won't be displayed in Search Results. So how can I determined in a query whether account is DISABLED (through the REST, but not 'gerrit gsql'). The only thing that I can do is just to get status of specific account through the REST.

--
--
To unsubscribe, email repo-discuss...@googlegroups.com

More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages