Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5976955
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T21:18:05+00:00 2026-05-22T21:18:05+00:00

This question isn’t about the database design of the RBAC system itself, but rather

  • 0

This question isn’t about the database design of the RBAC system itself, but rather how to use this database in conjunction with the application specific database when that web application allows its users to submit content.

As it stands my RBAC should easily work for a simple back-end admin application, where staff can add and update records – an online store for example does not generally have user submitted content. The two databases can remain separate. However, I am not sure how I could reuse my RBAC design with a website/application that allows its users to submit content. I would have two User tables in two databases that require permissions for adding/updating records.

  1. Do I incorporate my RBAC database into the website database and share the users table?

  2. Do I keep the two separate?

  3. Do something else?

If option 2 do I:

  • (A) duplicate the users from the website database into the RBAC user table

  • (B) create a relationship to the user table in the website database

  • (C) create a new RBAC system within the website database for the website users and have the separate RBAC for admin users?

A seems bad as I am duplicating data but seems pretty simple to implement. B seems like it will be difficult to create a relationship to two separate user tables. C is also duplication, but I can heavily customize this RBAC without impacting the “admin” RBAC.

I am basically wanting to make my RBAC system as reusable as possible and having application specific users being able to submit content is making things a bit difficult to get my head around.

This little RBAC system of mine is mostly a way for me to learn so please no generic “you should use framework x/y/z”. Using a term I discovered recently, I am somewhat a wheel nerd and like to reinvent them whenever I am curious! 🙂

I will be using MySQL and PHP for my sites, but this shouldn’t matter as it is the database design I am asking about here.

If my question isn’t clear please do let me know and I will to explain further. Thank you all for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T21:18:06+00:00Added an answer on May 22, 2026 at 9:18 pm

    Not knowing your full implementation, I am leaning toward your first solution and only using one user table. The online application can then query the RBAC to determine if the user privledges. What is not clear to me is how many application attribultes would be needed and where they would be stored. If you do have user attribultes that need to be stored in the database then you can create a user table in the application with a foreign key reference to the RBAC to determine access privledges without storing that data in 2 places. How complex this would be depends on how many different places you can add and update users and their attributes. The physical database structure is very dependent on your business rules and architecture, but your logical design would be to keep the data in one table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This question isn't about popping up an iframe inside a Lightbox; rather, it's about
I have an ASP.NET website, but this question isn't really about technology, it is
this question isn't related to jQuery itself but I found a plugin named Metadata
This question isn't about unit-testing. And it is for a desktop product. This is
Important: This question isn't actually really an ASP.NET question. Anyone who knows anything about
So this question isn't about integrating an existing payment gateway into my site. This
I know this question isn't directly programming related, but since I want to be
I hope this question isn't too open ended, but a nudge in the right
I'm relatively new to web application programming so I hope this question isn't too
This question isn't really for any specific technology but more of general developer question.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.