User group permissions Home

Introduction
Welcome
System requirements
Licensing details
What is the registration
Using PHPRunner
Working with projects
Templates
What are templates
Cars
Classified ads
Events
Jobs
Knowledge base
News
Paypal
Real estate
Sporting
Vacation houses
Connecting to the database
Datasource tables
SQL query page
About SQL query designer
Query Designer
SQL
Results
Charts
Creating chart and setting parameters
Chart appearance
Using SQL to shape chart data
Reports
Creating report and setting parameters
Report totals and layout
Choose pages
Login page
User login settings
Advanced security settings
User group permissions
Fields order and totals
Miscellaneous settings
Choose theme
Visual Editor
About
Toolbars
Page Elements
"View as" settings
"Edit as" settings
Validation types
Lookup wizard
Events
Output directory settings
After you are done
FTP upload
FrontPage Publishing
Advanced topics
Events
More info about events
Global events
Table events
Page life cycle overview
Predefined actions
Send a simple email
Send an email with new data
Save new data in another table
Insert a record into another table
Check to see if a specific record exists
Display a message on the Web page
Redirect to another page
Custom code
Sample events
Show list of customer orders
Check if start date is ealier than end date
Before deleting a record check for related records
Speed up data entry using events
Publishing PHP application to the remote Web server
Using FTP client to publish PHP pages to the remote Web server
Using FrontPage to publish PHP pages to the remote Web server
Demo Account
What is the Demo Account?
Terms and Conditions
Connect using PHP
Master-details relationships
Using JOIN SQL queries
AJAX-based Functionality
PHPRunner session variables
Debugging tips
Template files processing rules (Files.txt)
Multilanguage support
Useful functions and links
Smarty templates
Stylesheets
Template language
How to control Inline Add/Edit functionality from script
Rich Text Editor plugins
Upgrade Guide from PHPRunner 3.0 and older
PDF view settings
Order PHPRunner online

 
  PHPRunner manual


User group permissions

 

This feature allows to assign table level permissions on database tables and views. I.e. user A can add data into table1 and edit data in table2, user B can edit and search data in table1 and can delete data in table2 etc.

To use this feature proceed to Security step in PHPRunner, click on "Define user group permissions".

There are ways to define user group permissions:

  • in the PHPRunner directly before building project (Static permissions option). In this case if you want to change some security settings you'll need to open PHPRunner project, make some changes on the User Group Permissions dialog and rebuild project.

  • on the generated pages (Dynamic permissions option). PHPRunner create new tables for user group permissions settings in the database and build admin area in the application. Admins can update permissions online.

Static permissions

On this screen, you can create user groups with assigned set of permissions.

First of all choose GroupID field that stores group name or id (see screenshot).

To add a new group, click "Add group". A dialog box will appear where you can choose username which defines this group and define initial set of permissions. Afterwards, you can change permissions for certain tables.

You can create a user group based on non-existing GroupID field value (if you plan to add users to this group later).

Apart from this, you can create a default group with a default set of permissions. When a user that does not belong to any of specified groups is logged in, the default set of permissions mentioned above is assigned to him. For example, as shown on the screenshot above, the user not belonging to any of the groups, is able to edit and delete data, but is not able to add or search records in any table.

To delete selected group, click "Delete group".

To overwrite existing group, click "Add group" and choose the same group id value.

You can set any group to be an admin group. This option is availble to you when one of Advanced Security options are in use.

Dynamic permissions

Dynamic permissions require three database tables to store permissions, groups, and group members. PHPRunner allows you to create these tables or select existing ones. By adding a prefix in front of table names PHPRunner allows several projects to share the same database.

On this screen you should select existing tables or chose prefix for the new tables where user group permissions will be stored and add admin user on the Set Initial Permissions dialog.

After building you need to login as admin, add groups, set up permissions and assign users to created groups.

 

Admin area on the generated pages.

Add new groups and assign permissions to the groups:

Assign existing users to the groups:

Add, edit or delete users:

The CHM file was converted to HTML by chm2web software.