LiveUser Permission and User Type

Introduction

In LiveUser, you can define some kind of user types. This information is stored in the «liveuser_perm_user» table, in the «perm_type» field.

LiveUser provides a list of 6 different user types. Each type is defined by a constant inside LiveUser:

  • anonymous : LIVEUSER_ANONYMOUS_TYPE_ID = 0
  • user: LIVEUSER_USER_TYPE_ID = 1
  • admin: LIVEUSER_ADMIN_TYPE_ID = 2
  • area admin: LIVEUSER_AREAADMIN_TYPE_ID = 3
  • super admin: LIVEUSER_SUPERADMIN_TYPE_ID = 4
  • master admin: LIVEUSER_MASTERADMIN_TYPE_ID = 5

Only some of those values have an impact on how permissions and rights are handled within LiveUser.

User Types and Simple/Medium Level Managements

If the current permission level management is simple or medium (as specified in the LiveUser configuration file), rights are granted in 2 different ways depending on the user type.

User Type: anonymous, user, admin and area admin

For basic user types (anonymous, user, admin and area admin), rights are granted if specified as such in the «liveuser_userrights» and «liveuser_grouprights» tables.

Illustration

In the following example, the user type is set to anonymous, user, admin or area admin. In this case, user E will only be granted right 1. User F will be granted right 2, ...

Anonymous, users, admins and areas admins at simple/medium level management

From functional to technical point of view...

To implement this solution, you just need to specify in the «liveuser_perm_user» table a «perm_type» equal to 0, 1, 2 or 3 for the concerned user(s).

Example

«UserF» has been granted the «EVE_VIEW» right directly. His «perm_type» is equal to 3.

Login userF

User Type: super and master admin

If a user is set as a super or a master admin, he is always granted all rights, even rights not defined in the system.

Illustration

In the next example, the user type is set to super or master admin. In this case, user G will automatically be granted all rights.

Super and master admins at simple/medium level management

From functional to technical point of view...

To implement this solution, you just need to specify in the «liveuser_perm_user» table a «perm_type» equal to 4 or 5 for the concerned user(s).

Example

«UserG» has its «perm_type» equal to 4. This setting allows him to have all rights granted, for all areas.

Login userG

User Types and Complex Level Management

If the current permission level management is complex (as specified in the LiveUser configuration file), rights are granted in 3 different ways depending on the user type.

User Type: anonymous, user and admin

For anonymous, user and admin types, rights are granted according to the contents of the «liveuser_userrights» and «liveuser_grouprights» tables.

Illustration

In the following example, the user type is set to anonymous, user or admin. User E will be granted rights 2, 3 & 4.

Anonymous, users and admins at complex level management

From functional to technical point of view...

To implement this solution, you just need to specify in the «liveuser_perm_user» table a «perm_type» equal to 0, 1 or 2 for the concerned user(s).

Example

«UserE» has been granted the «EVE_VIEW» right directly. His «perm_type» is equal to 2.

Login userE

User Type: area admin

If a user is set as an area admin, LiveUser will verify whether the user is set as an administrator of one or more areas.

Illustration

In the following example, the user type is set to area admin. In this case, user F will be granted rights 4 and 3.

Area admins at complex level management

From functional to technical point of view...

To implement this solution, you need to:

  • specify in the «liveuser_perm_user» table a «perm_type» equal to 3 for the concerned user(s).
  • fill in the «liveuser_area_admin_areas» table

The «liveuser_area_admin_areas» Table

The «liveuser_area_admin_areas» table contains 2 fields:

  • area_id: the area id the user will be able to manage
  • perm_user_id: the concerned user id at permission level
liveuser_area_admin_areas
area_id perm_user_id
2 12

Example

«UserF» has been granted the «EVE_VIEW» right directly. «UserF» has been set as administrator of the «Event» area. His «perm_type» is equal to 3. He's granted all rights related to the «Event» area.

Login userF

User Type: super and master admin

If a user is set as an super or a master admin, he is always granted all rights, even rights not defined in the system.

Example

In the next example, the user type is set to super or master admin. In this case, user G will automatically be granted all rights.

Super and master admins at complex level management

From functional to technical point of view...

To implement this solution, you just need to specify in the «liveuser_perm_user» table a «perm_type» equal to 4 or 5 for the concerned user(s).

Example

«UserG» has its «perm_type» equal to 4. This setting allows him to have all rights granted, for all areas.

Login userG

Get in touch!

We'd love to hear from you, what you think about this page or what we can do for you.

Contact Us

View this page with IE8+, Mozilla Firefox, Safari, Chrome and Mobiles

Last modificaton on 21 May 2015 by St├ęphane Van Nerom

© 2006-2014 - GVN - All rights reserved
v2.0.14