Link to home
Start Free TrialLog in
Avatar of inteliarchs
inteliarchsFlag for United States of America

asked on

I need a database to store authorization information for an application.

My application will have 20 pieces of functionality that I want to grant individually.  To simplify the application, I want to assign users to 1 or more of 5 groups which will be associated to the pieces of functionality.  How would you draw the need table or tables?
Avatar of mcs0506
mcs0506
Flag of Pakistan image

Hi,
you have to create some tables regarding authorization e.g following are the tables:

Users (contains User Information)
Groups (contains Group Names)
UserGroup (Contains association of user and group)
FunctionalityObjects  (Contains names of all functionalities )
GroupPermission  (Contains association of functionality with of that group that actually have permission for specific functionalityId)

db schema image is also attached.

Regards,

Dani User generated image
you may also need a userfunctionality object if there are limits within the functions...

e.g. an individual may have cheque signing authority but only up to a certain monetary limit...

so they are part of the cheque signers/authorisors groups but only for certain limits...
Avatar of inteliarchs

ASKER

Thank you this is what I came up with, I appreciate your response and so quickly.
ASKER CERTIFIED SOLUTION
Avatar of mcs0506
mcs0506
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Great job