Get Joomla 1.5 User Access Level

This will get the user object which can be used to retreive user’s access level code. This code is in the gid field in jos_users table.


$user = &JFactory::getUser();
$access = $user->get('gid',0);


Group access level codes:

Backend Admin Access
25 – Super Administrator
24 – Administrator
23 – Manager

Front End Access
21 – Publisher
20 – Editor
19 – Author
18 – Registered
21 – Publisher

UPDATE: As of Joomla 1.6 the gid field in jos_users table is no longer available.

Leave a comment

2 Comments.

  1. Well I sincerely enjoyed reading it. This post offered by you is very constructive for good planning.

  2. I’m going to many thanks for this excellent site!! I undoubtedly enjoyed every little it. I count on seeing what else you post. Thanks