# Query party IDs for login screen

**URL:** <https://forum.canton.network/t/query-party-ids-for-login-screen/590>\
**Category:** App Development\
**Tags:** daml, template, json-api, react\
**Created:** [June 3, 2020, 8:18am UTC](https://forum.canton.network/t/query-party-ids-for-login-screen/590 "2020-06-03T08:18:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![gaborh](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/gaborh/32/177_2.png) [@gaborh](https://forum.canton.network/u/gaborh)\
**Post date:** [June 3, 2020, 8:18am UTC](https://forum.canton.network/t/query-party-ids-for-login-screen/590/1 "2020-06-03T08:18:27Z")

</div>

I use Canton and DAML UI template for a demo application. Party IDs are very long and change from one Canton start to the next.

I would like to query the party IDs on the login screen before logging in and present a list/menu to the user. Is this possible? If yes, how?

---

<div class="post-metadata">

**Author:** ![georg](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/georg/32/368_2.png) [@georg](https://forum.canton.network/u/georg)\
**Post date:** [June 3, 2020, 9:21am UTC](https://forum.canton.network/t/query-party-ids-for-login-screen/590/2 "2020-06-03T09:21:49Z")

</div>

If you run a JSON API service you can use the `v1/parties` endpoint to query all known parties (see the [docs here](https://docs.daml.com/json-api/index.html#fetch-all-known-parties)). You’d need a token with an `admin` claim though if I remember correctly, but I suppose for a demo you could provide that.
