# Is multiple parties per DAML/hub user possible?

**URL:** <https://forum.canton.network/t/is-multiple-parties-per-daml-hub-user-possible/2442>\
**Category:** App Development\
**Created:** [April 12, 2021, 10:53pm UTC](https://forum.canton.network/t/is-multiple-parties-per-daml-hub-user-possible/2442 "2021-04-12T22:53:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ericson2314](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/ericson2314/32/1757_2.png) [@Ericson2314](https://forum.canton.network/u/Ericson2314)\
**Post date:** [April 12, 2021, 10:53pm UTC](https://forum.canton.network/t/is-multiple-parties-per-daml-hub-user-possible/2442/1 "2021-04-12T22:53:27Z")

</div>

We have a few questions about the user workflows as described on [https://projectdabl.com/docs/api/iam/#listening-for-new-users](https://projectdabl.com/docs/api/iam/#listening-for-new-users).

Our plan was that a user logs in, and then chooses which party (or sort of party / role) they want to be. E.g. they log in and say what their job is. The important part is that every (user, role) pair should have their own DAML party — multiple parties per user.

However the docs at [https://projectdabl.com/docs/api/iam/](https://projectdabl.com/docs/api/iam/) seem to imply that a user logging in from DAML/hub gets one party. Is what we want to do possible?

---

<div class="post-metadata">

**Author:** ![dtanabe](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/dtanabe/32/91_2.png) [@dtanabe](https://forum.canton.network/u/dtanabe)\
**Post date:** [April 12, 2021, 11:21pm UTC](https://forum.canton.network/t/is-multiple-parties-per-daml-hub-user-possible/2442/2 "2021-04-12T23:21:36Z")

</div>

Is there something specific you’re looking to get out of the separation of users into individual `Party`'s by role? I’d liken that to needing a separate login for mini-apps within the same platform, and that could greatly limit the user’s flexibility in reasoning about models _across_ roles that they otherwise have access to.

It is possible to have multiple parties associated with the same user; you can create additional parties through the `Add Party` on the console. It’s unfortunately not that well-integrated into the login process, though, so users would have to acquire JWTs for specific parties by logging into the Daml Hub console and “picking” a party there.

A good use case for a single user having multiple parties is one where a user wishes to place a rigid boundary. Using DABL Chat as an example, a user might choose to create multiple “accounts” for the same reason someone might want more than one Twitter handle; but the parties are not created solely for rights segmentation purposes.

---

<div class="post-metadata">

**Author:** ![Ericson2314](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/ericson2314/32/1757_2.png) [@Ericson2314](https://forum.canton.network/u/Ericson2314)\
**Post date:** [April 13, 2021, 8:00pm UTC](https://forum.canton.network/t/is-multiple-parties-per-daml-hub-user-possible/2442/3 "2021-04-13T20:00:02Z")

</div>

Thanks @dtanabe. I plaid around with the chat app on DAML/hub and saw the things you are referring to.

---

<div class="post-metadata">

**Author:** ![Shaul](https://yyz2.discourse-cdn.com/flex034/user_avatar/forum.canton.network/shaul/32/117_2.png) [@Shaul](https://forum.canton.network/u/Shaul)\
**Post date:** [April 20, 2021, 12:47am UTC](https://forum.canton.network/t/is-multiple-parties-per-daml-hub-user-possible/2442/4 "2021-04-20T00:47:13Z")

</div>

@Ericson2314 if you happen to be doing this in order to implement role-based access control, you may want to take a look at use case 2 in [Roles in Daml - Introducing Multi-party submissions - Daml](https://daml.com/blog/engineering/roles-in-daml-introducing-multi-party-submissions/)
