# User-management with Backendless.com

**URL:** <https://community.thunkable.com/t/user-management-with-backendless-com/905>\
**Category:** Promote your App\
**Created:** [January 3, 2017, 3:15pm UTC](https://community.thunkable.com/t/user-management-with-backendless-com/905 "2017-01-03T15:15:25Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jbp4444](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jbp4444/32/98_2.png) [@jbp4444](https://community.thunkable.com/u/jbp4444)\
**Post date:** [January 3, 2017, 3:15pm UTC](https://community.thunkable.com/t/user-management-with-backendless-com/905/1 "2017-01-03T15:15:25Z")

</div>

I’ve seen a post or two asking about end-user management so I’ll offer up my own simple(-ish) app to do end-user creation and login with the Backendless MBaaS platform.

(start of sales pitch) The app uses [https://backendless.com/](https://backendless.com/), which offers a free account that starts with decent quotas on storage, API usage, pub/sub, push notifications, and even a few media streams. As your needs grow, you can purchase “function packs” to expand only those features that you need. Everything is backed by a straightforward REST API which is very easy to integrate with Thunkable. (end of sales pitch)

Grab the AIA file here …

The main screen is mostly a set of links to other pages that do the “real work”. But it also includes a TinyDB that stores some of the authentication info needed by Backendless – more on this later since you’ll need to fill in the “Application ID” and “Secret Key” with your own values.

The basic flow of the app is that you go to the “New User” creation page (RegisterScreen) and enter a name, email, and password … click “Register” and the app contacts Backendless to create the account. That doesn’t actually log you in; you need to go to LoginScreen to do that. The login process will return a “user-token” that is needed for future API calls (and is stored in the same TinyDB). Now that you’re authenticated, you can run a simple database query to view information – the “Run Command” button links to the RunScreen which should show the user-token and let you query the first or last item in a dummy database.

I’ll skip the “creating the app” stuff for Thunkable since it’s all in the AIA file.

On the Backendless side, you need to create a new “App” – this is just a container for a set of data, users, roles, media, files, etc. Once that is created, look on the left-side menu for the “Manage” tab, then “App Settings” … you should see your “Application ID” and “REST Secret Key” (copy and paste those into the Screen1.Initialize code).

Now, go to the “Users” tab, “User Properties” and make sure “Enable Dynamic User Definition” is enabled. Under “Users”, “Registration”, also make sure the “Registration” slider is enabled. You’ll see that there are also options to require email verification and to set default time-outs for sessions.

---

<div class="post-metadata">

**Author:** ![jbp4444](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jbp4444/32/98_2.png) [@jbp4444](https://community.thunkable.com/u/jbp4444)\
**Post date:** [January 3, 2017, 3:16pm UTC](https://community.thunkable.com/t/user-management-with-backendless-com/905/2 "2017-01-03T15:16:34Z")

</div>

(hit “create” too soon)

Here is the AIA file … [BackendlessUserMgt.aia](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/1X/8b3b6345a200ddecfabd2a550a5406f12380a8f1.aia) (13.3 KB)

---

<div class="post-metadata">

**Author:** ![pavi2410](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/pavi2410/32/16588_2.png) [@pavi2410](https://community.thunkable.com/u/pavi2410)\
**Post date:** [January 3, 2017, 5:53pm UTC](https://community.thunkable.com/t/user-management-with-backendless-com/905/3 "2017-01-03T17:53:42Z")

</div>

Sounds cool. I will definitely take a look.

---

<div class="post-metadata">

**Author:** ![Kleyber\_Derick](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kleyber_derick/32/10516_2.png) [@Kleyber\_Derick](https://community.thunkable.com/u/Kleyber_Derick)\
**Post date:** [January 3, 2017, 10:47pm UTC](https://community.thunkable.com/t/user-management-with-backendless-com/905/4 "2017-01-03T22:47:18Z")

</div>

Very interesting!! I’ll take a look too!!

---

<div class="post-metadata">

**Author:** ![philm](https://avatars.discourse-cdn.com/v4/letter/p/54ee81/32.png) [@philm](https://community.thunkable.com/u/philm)\
**Post date:** [December 29, 2017, 3:45pm UTC](https://community.thunkable.com/t/user-management-with-backendless-com/905/5 "2017-12-29T15:45:00Z")

</div>

PUT URL changed.  
[https://api.backendless.com/](https://api.backendless.com/){{Application ID}}/{{REST API Key}}/log  
instead of  
[https://api.backendless.com/v1/log](https://api.backendless.com/v1/log)

But messages and timestamp seems to be ditched and only name is kept for the first log entry. So switching screens back and forth results in only ONE log entry. Or I missed something.

Useless without further tests.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:05pm UTC](https://community.thunkable.com/t/user-management-with-backendless-com/905/6 "2024-11-08T12:05:50Z")

</div>


