# User roles for services

**URL:** https://community.dreamfactory.com/t/user-roles-for-services/4801
**Category:** REST API
**Created:** [February 17, 2019, 10:05am UTC](https://community.dreamfactory.com/t/user-roles-for-services/4801 "2019-02-17T10:05:02Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![MrSpock](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@MrSpock](https://community.dreamfactory.com/u/MrSpock)
#### Post date: [February 17, 2019, 10:05am UTC](https://community.dreamfactory.com/t/user-roles-for-services/4801/1 "2019-02-17T10:05:02Z")

</div>

Hello,  
in the admin panel I can select or create users. There on the role page I can define which role this user has for using the various services.  
My users are creates in my app, when they register to this app. How can I control via API which role this new user has for the defined services?  
Best Regards

---

<div class="post-metadata">

### Author: ![Julian\_Kallidat](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.dreamfactory.com/julian_kallidat/32/1213_2.png) [@Julian\_Kallidat](https://community.dreamfactory.com/u/Julian_Kallidat)
#### Post date: [February 25, 2019, 5:51pm UTC](https://community.dreamfactory.com/t/user-roles-for-services/4801/2 "2019-02-25T17:51:59Z")

</div>

You can do this in the configuration if the “user” service. There you can specify for each app which role the user should get by default.  
Is that what you mean/need?

---

<div class="post-metadata">

### Author: ![MrSpock](https://avatars.discourse-cdn.com/v4/letter/m/58956e/32.png) [@MrSpock](https://community.dreamfactory.com/u/MrSpock)
#### Post date: [February 28, 2019, 6:55am UTC](https://community.dreamfactory.com/t/user-roles-for-services/4801/3 "2019-02-28T06:55:11Z")

</div>

Yes that is what I mean, but I need to do it via the API and not in the control panel.
