# App not working as expected

**URL:** <https://community.glideapps.com/t/app-not-working-as-expected/81549>\
**Category:** Ask for Help\
**Created:** [April 25, 2025, 9:41pm UTC](https://community.glideapps.com/t/app-not-working-as-expected/81549 "2025-04-25T21:41:30Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mateo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mateo/32/79814_2.png) [@Mateo](https://community.glideapps.com/u/Mateo)\
**Post date:** [April 25, 2025, 9:41pm UTC](https://community.glideapps.com/t/app-not-working-as-expected/81549/1 "2025-04-25T21:41:30Z")

</div>

Does anyone know why this only works inside the Glide layout, but not in the published app?

I recorded a video showing the issue (linked below).

For context: I run a cleaning company, and I’m trying to set it up so that when I add a new cleaner, they are automatically added to the user database with the role “Cleaner.”  
However, it only seems to work inside the Glide editor, not in the live published app.

Any ideas why this might be happening?

> **[Recording 2025-04-25 163627.mp4](https://drive.google.com/file/d/1XOg7xDYg9xFG981iii2OeUaSJ8DOOsXs/view?usp=sharing)**
>
> Google Drive file.

**I also tried setting the cleaner role directly in the same step where I add the row to the user database, but it still doesn’t work :**

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/4/c4cfad22c7c6e94ad934bb7cb70fd7a33f5f9543.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [April 25, 2025, 10:33pm UTC](https://community.glideapps.com/t/app-not-working-as-expected/81549/2 "2025-04-25T22:33:09Z")

</div>

You can’t set the Role via the app for security reasons. That includes setting it via the app interaction workflow. You would have to use one of the other workflow types. Maybe a webhook workflow that you can call from the app. Basically, the role can only be set server side, as opposed to being set from the end user’s device.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 26, 2025, 12:03am UTC](https://community.glideapps.com/t/app-not-working-as-expected/81549/3 "2025-04-26T00:03:58Z")

</div>

> **[Roles | Glide Docs](https://www.glideapps.com/docs/essentials/security-and-user-data/roles)**
>
> Define roles for your users and build different experiences and permissions.

More on the Roles feature here.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [May 3, 2025, 12:04am UTC](https://community.glideapps.com/t/app-not-working-as-expected/81549/4 "2025-05-03T00:04:10Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
