Results 1 to 5 of 5

Thread: User permission inside the software

  1. #1
    Join Date
    Feb 2014
    Posts
    94
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default User permission inside the software

    Hello all!

    I am developing a software for multiple users and I need to set permission about what each user can and cannot do inside the software, like access to software area's and so long.

    Could someone help me with an article or a link about it?

    Thanks in advance.

  2. #2
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: User permission inside the software

    Your post has nothing to do with Qt, so perhaps the "General Programming" forum is a better choice. That said, you have asked a wide open question and there are many, many ways to accomplish this.

    Generally, it would be better the classify users into functional groups, otherwise known as role based access. You have to create a method of creating users of course and when you do, you would associate them with one or more functional groups like "Users", "Administrators", "Auditors", or whatever is appropriate for your application.

    Typically you would store your users/groups in a database and verify user's sign ins against the database. Once the user signs in, you will know what access level is associated with that user. Then it's simple matter of coding your application so that you enable/disable or hide/show your applications features based on their group membership.

    For example, if user joeblow signs in with "Users" authority, then you should disable any menu items or buttons that are only available to "Administrators".

    This can all be part of your application logic or you can use your OS's authentication capabilities like LDAP for Unix systems, Active Directory for Windows, etc. It's up to you though to integrate these OS services or roll your own user authentication system, etc.

    This is a very wide topic and I recommend you Google around for "role based access".

    Good luck.
    Last edited by jefftee; 25th February 2015 at 20:07.

  3. The following user says thank you to jefftee for this useful post:

    guidupas (25th February 2015)

  4. #3
    Join Date
    Feb 2014
    Posts
    94
    Thanks
    5
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: User permission inside the software

    Thanks jthomps. Sorry about the mistake about the topic creation. Just giving me where to start with google search helped me.

  5. #4
    Join Date
    Nov 2014
    Posts
    32
    Thanked 1 Time in 1 Post
    Qt products
    Platforms
    Windows

    Default Re: User permission inside the software

    Please write what language do you want to use?

  6. #5
    Join Date
    Dec 2009
    Location
    New Orleans, Louisiana
    Posts
    791
    Thanks
    13
    Thanked 153 Times in 150 Posts
    Qt products
    Qt5
    Platforms
    MacOS X

    Default Re: User permission inside the software

    Quote Originally Posted by kaufenpreis View Post
    Please write what language do you want to use?
    Can you clarify what you are asking? I have no idea what you are referring to.

Similar Threads

  1. Replies: 3
    Last Post: 28th January 2015, 00:09
  2. How to get root permission inside qt program?
    By manojpatidar in forum Qt Programming
    Replies: 2
    Last Post: 18th September 2014, 21:59
  3. Replies: 0
    Last Post: 11th January 2013, 11:21
  4. Replies: 0
    Last Post: 10th July 2012, 14:03
  5. Replies: 9
    Last Post: 13th February 2008, 13:23

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.