# I want to create multiple roles login

**URL:** <https://discuss.kotlinlang.org/t/i-want-to-create-multiple-roles-login/9136>\
**Category:** Android\
**Created:** [August 20, 2018, 12:48pm UTC](https://discuss.kotlinlang.org/t/i-want-to-create-multiple-roles-login/9136 "2018-08-20T12:48:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdulmoizbaloch](https://avatars.discourse-cdn.com/v4/letter/a/7cd45c/32.png) [@abdulmoizbaloch](https://discuss.kotlinlang.org/u/abdulmoizbaloch)\
**Post date:** [August 20, 2018, 12:48pm UTC](https://discuss.kotlinlang.org/t/i-want-to-create-multiple-roles-login/9136/1 "2018-08-20T12:48:37Z")

</div>

Hey Great Community Members,

I’m looking to create multiple login roles using kotlin, and the Scenario is:

There will be two type of users Admin and the employess, there will be different dashboard or we can say layout for Employee and for Admin different,

How i can do it using which article of kotlin i can approach it ?

Thanks

---

<div class="post-metadata">

**Author:** ![tieskedh](https://sea1.discourse-cdn.com/flex019/user_avatar/discuss.kotlinlang.org/tieskedh/32/2816_2.png) [@tieskedh](https://discuss.kotlinlang.org/u/tieskedh)\
**Post date:** [August 21, 2018, 6:28am UTC](https://discuss.kotlinlang.org/t/i-want-to-create-multiple-roles-login/9136/2 "2018-08-21T06:28:10Z")

</div>

Database tables:

- roles
- accounts

If role == admin … else …
