<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>14 Nov 2014 12:01:00 Z</lastBuildDate><pubDate>14 Nov 2014 05:55:00 Z</pubDate><description>Dear All,&#13;
&#13;
In a software that I am developing I am using web service to access remote database which is MySQL.&#13;
&#13;
As I am not using the native HFSQL Classic or Server it would not be possible to implement Groupware for user access rights management.&#13;
&#13;
To handle users and their access rights here is what I am doing:&#13;
	 I have create three tables&#13;
	Table 1 is Privilege master (priv)&#13;
	Table 2 is User master (usr)&#13;
	Table 3 is User Privilege (usrpriv)&#13;
	&#13;
Here are the structure of these tables as dumped by MySQL phpMyAdmin:&#13;
-- -- Table structure for table `priv` -- CREATE TABLE IF NOT EXISTS `priv` ( `priv_id` int(11) NOT NULL AUTO_INCREMENT, `priv_module` text, `priv_name` text, `priv_descrip` text, PRIMARY KEY (`priv_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -------------------------------------------------------- -- -- Table structure for table `usr` -- CREATE TABLE IF NOT EXISTS `usr` ( `usr_id` int(11) NOT NULL AUTO_INCREMENT, `usr_username` text, `usr_propername` text, `usr_passwd` text, `usr_initials` text, `usr_active` tinyint(1) NOT NULL DEFAULT '1', `usr_email` text, PRIMARY KEY (`usr_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ; -- -------------------------------------------------------- -- -- Table structure for table `usrpriv` -- CREATE TABLE IF NOT EXISTS `usrpriv` ( `usrpriv_id` int(11) NOT NULL AUTO_INCREMENT, `usrpriv_priv_id` int(11) DEFAULT NULL, `usrpriv_usr_id` int(11) DEFAULT NULL, PRIMARY KEY (`usrpriv_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;&#13;
What I am planning to do is enter all the features that are necessary for the users in the priv table taking care to note down the automatically generated RecID (priv_id).&#13;
&#13;
Then in a Global module I am creating constants names as per user rights name and assigning them value as per the auto generated RecID.&#13;
&#13;
Now when a user is assigned an access right I am saving the same info in usrpriv table.&#13;
&#13;
When a user logs in and tries to access any part of the software I will first check whether the user has the required rights (in usrpriv table) to access that part of the software or not and then allow access or deny access.&#13;
&#13;
What I am doing seems to work at experimental level.&#13;
&#13;
I would like to know if this is the right way to go?&#13;
&#13;
Another thing is that this way is quite laborious as I have always keep the priv table and my list of constants in sync.&#13;
&#13;
Is there any easier way to manage user access rights then this that anyone has been using successfully and would like to share please to share it here?&#13;
&#13;
TIA&#13;
&#13;
Yogi Yang</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48949-need-advise-wd17-user-access-management/read.awp</link><title>Need Advise WD17 - User Access Management</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48949-need-advise-wd17-user-access-management-48960/read.awp</comments><pubDate>14 Nov 2014 12:01:00 Z</pubDate><description>Hi&#13;
&#13;
there are many different ways to manage that problem. You can by example add a PROFILE functionality, in order to save man…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48949-need-advise-wd17-user-access-management-48960/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48949-need-advise-wd17-user-access-management-48960/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48949-need-advise-wd17-user-access-management/read.awp">Need Advise WD17 - User Access Management</source><title>Re: Need Advise WD17 - User Access Management</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48949-need-advise-wd17-user-access-management-48959/read.awp</comments><pubDate>14 Nov 2014 11:57:00 Z</pubDate><description>Yogi&#13;
&#13;
First thing I would suggest is that you use InnoDB as your database engine and not MyISAM especially if data integrity i…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48949-need-advise-wd17-user-access-management-48959/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48949-need-advise-wd17-user-access-management-48959/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/48949-need-advise-wd17-user-access-management/read.awp">Need Advise WD17 - User Access Management</source><title>Re: Need Advise WD17 - User Access Management</title></item></channel></rss>
