mysql -u <username> -p
use otrs
select * from group_user where user_id = 1 and group_id = 1;
Returns the following:
 
Empty set (0.00 sec)
 
 
 
This happened after I renamed the user groups in OTRS's admin interface...
 
Looking at the MySQL databases shows the Admin group as ID 2... dh@syrex.cc is however a member of this group (admin@syrex.cc seems to have been removed)...
 
How do I manually change the 'Admin' group back to '1' and how do I add a user to a group?
 
 
Running MySQL reports on the tables however reports the following:
 
 
group_user:
user_id group_id permission_read permission_write create_time create_by change_time change_by
1 2 1 1 2003-10-22 18:48:21 1 2003-10-22 18:48:21 1
1 3 1 1 2003-10-22 18:48:21 1 2003-10-22 18:48:21 1
2 1 1 1 2003-10-22 22:50:54 2 2003-10-22 22:50:54 2
2 2 1 1 2003-10-22 18:48:10 1 2003-10-22 18:48:10 1
2 3 1 1 2003-10-22 18:48:10 1 2003-10-22 18:48:10 1
3 1 1 1 2003-10-22 22:50:54 2 2003-10-22 22:50:54 2
3 3 1 1 2003-10-22 22:33:25 2 2003-10-22 22:33:25 2
4 1 1 1 2003-10-22 22:50:54 2 2003-10-22 22:50:54 2
4 3 1 1 2003-10-22 22:33:55 2 2003-10-22 22:33:55 2
5 1 1 1 2003-10-22 22:50:54 2 2003-10-22 22:50:54 2
5 3 1 1 2003-10-22 22:34:59 2 2003-10-22 22:34:59 2
6 1 1 1 2003-10-22 22:50:54 2 2003-10-22 22:50:54 2
6 3 1 1 2003-10-22 22:35:30 2 2003-10-22 22:35:30 2
7 1 1 1 2003-10-22 22:50:54 2 2003-10-22 22:50:54 2
7 3 1 1 2003-10-22 22:35:59 2 2003-10-22 22:35:59 2

 
groups:
 
id name comment valid_id create_time create_by change_time change_by
1 Users
1 2003-10-22 18:40:37 1 2003-11-19 22:41:36 2
2 Admin
1 2003-10-22 18:40:37 1 2003-11-19 22:41:41 2
3 Stats
1 2003-10-22 18:40:37 1 2003-11-19 22:41:45 2
 
 
system_user:
 
1 admin@syrex.cc ad.Wh7rnUV5Ig
Administrator Syrex Intranets 1 2003-10-22 18:40:37 1 2003-10-22 18:45:55 1
2 dh@syrex.cc dh4ppdg7d6VDA Mr. David Herselman 1 2003-10-22 18:48:04 1 2003-10-22 18:48:04 1
3 om@syrex.cc omrZ6ARU7UzOQ Mr Omphile Mahlangu 1 2003-10-22 22:33:21 2 2003-10-22 22:33:21 2
4 ar@syrex.cc arhiuLw7epOMM Mr Andrew Richards 1 2003-10-22 22:33:53 2 2003-10-22 22:33:53 2
5 kd@syrex.cc kdKwdF57dEbxI Mr Kevin Das 1 2003-10-22 22:34:56 2 2003-10-30 13:34:55 2
6 vh@syrex.cc vhFcv9OQW8U6U Mrs Vivienne Herselman 1 2003-10-22 22:35:27 2 2003-10-22 22:35:27 2
7 rb@syrex.cc rbQpdCCCYRaBc Mr Ralph Berndt 1 2003-10-22 22:35:56 2 2003-10-22 22:35:56 2
 
 
Regards
David Herselman  (Executive Proprietor)  -=*> Syrex Intranets <*=-
 
=- 12 Coronation Road      http://www.syrex.co.za
   Sandhurst               +27-(0)11-883-2246 Voice
   2196                    +27-(0)11-884-7945 Fax