# Security question: User's unique ID in URL ... bad idea?

**URL:** <https://forum.bubble.io/t/security-question-users-unique-id-in-url-bad-idea/47993>\
**Category:** App Organization\
**Created:** [January 28, 2019, 12:06am UTC](https://forum.bubble.io/t/security-question-users-unique-id-in-url-bad-idea/47993 "2019-01-28T00:06:14Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tpmc123](https://avatars.discourse-cdn.com/v4/letter/t/e99b99/32.png) [@tpmc123](https://forum.bubble.io/u/tpmc123)\
**Post date:** [January 28, 2019, 12:06am UTC](https://forum.bubble.io/t/security-question-users-unique-id-in-url-bad-idea/47993/1 "2019-01-28T00:06:15Z")

</div>

Hi,

I want to pass a “user” to another page. To do so, I’m passing the user’s unique ID as a parameter (in a key/value pair). This puts the unique ID in the URL. I’m trying to figure out if this is a security issue. Any thoughts?

Thanks

---

<div class="post-metadata">

**Author:** ![dan1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dan1/32/23411_2.png) [@dan1](https://forum.bubble.io/u/dan1)\
**Post date:** [January 28, 2019, 1:36am UTC](https://forum.bubble.io/t/security-question-users-unique-id-in-url-bad-idea/47993/2 "2019-01-28T01:36:49Z")

</div>

Passing the unique ID in the URL is only a security issue insofar as you develop (or under develop) other components.

Some things to consider:

- At a high level, if the Unique ID that you’re passing / referencing is that of the current user, then that is redundant. (The concept of “current user” carriers throughout your application).
- If you develop strong privacy roles (ie. differentiate roles between “current user” viewing their own records versus viewing the records of others, that’ll go a long way. (Ex. if you store a “friend list” on the user, and you have “friend’s Unique ID” as a parameter, the end user should only be able to access data if they are in the friend’s list of that user.
- Make sure that you don’t have workflows that would allow someone to manipulate another person’s data simply by dropping a different value in for the unique ID. (Ex. charge the Stripe account of the user in the Unique ID’s value.
- If you don’t want to immediately expose the unique ID in the URL (for vanity reasons or making things a bit more obscure), you can create your own workaround unique ID. (I only recommend doing this in limited circumstances - ex. having a profile found by username like twitter).

I’m sure others will have additional thoughts to add. Really good question to ask!

* * *

Dan (creator of [LearnTo](https://learnto.app?source=forum) - 15+ hours of Bubble tutorials and [live coaching](https://www.usesixty.com/users/841-dan-smolkin?m=true&r=841))

---

<div class="post-metadata">

**Author:** ![parris.gjerde](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@parris.gjerde](https://forum.bubble.io/u/parris.gjerde)\
**Post date:** [November 12, 2021, 7:06pm UTC](https://forum.bubble.io/t/security-question-users-unique-id-in-url-bad-idea/47993/3 "2021-11-12T19:06:43Z")

</div>

Will a record’s unique id ever change? Not sure what table maintenance processes bubble uses behind the scenes but, whatever they do, could it ever effect the unique id.

---

<div class="post-metadata">

**Author:** ![equibodyapp](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/equibodyapp/32/159574_2.png) [@equibodyapp](https://forum.bubble.io/u/equibodyapp)\
**Post date:** [November 12, 2021, 11:11pm UTC](https://forum.bubble.io/t/security-question-users-unique-id-in-url-bad-idea/47993/4 "2021-11-12T23:11:17Z")

</div>

The unique ID remains the same 🙂

---

<div class="post-metadata">

**Author:** ![parris.gjerde](https://avatars.discourse-cdn.com/v4/letter/p/f05b48/32.png) [@parris.gjerde](https://forum.bubble.io/u/parris.gjerde)\
**Post date:** [November 15, 2021, 2:39pm UTC](https://forum.bubble.io/t/security-question-users-unique-id-in-url-bad-idea/47993/5 "2021-11-15T14:39:16Z")

</div>

Thank you
