Kayako logo
How do I? Questions about how to do specific things in SupportSuite, eSupport and LiveResponse. Not for reporting problems.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  (#1) Old
seamus Offline
New Member
 
Posts: 6
Join Date: Apr 2008
Auto assign user to group - 29-04-2008, 01:16 PM

Hello,

I currently have a client that has quite a number of employees. They all email from a single domain.
I would love it if there was the ability to automatically add a new user to a group (which i would name according to the domain)

Does anyone know if such a thing is possible.

e.g.
I create a group called "company.com"

Whenever a user submits a ticket (by email) to my support inbox, and the email comes from user@company.com, user2@company.com etc, those users are added to the group "company.com"

Does anyone know if this is possible?
I guess if i really had to, i could create my own cron job to do this, but it would be useful if such a feature was built in.
Perhaps i am just blind and its staring me in the face :P
   
Reply With Quote
  (#2) Old
Matthew Offline
Member
 
Matthew's Avatar
 
Posts: 195
Join Date: Oct 2007
Location: Jakarta, Indonesia
29-04-2008, 01:30 PM

I would sure like this ability, too. I need to put users into a particular default group, which is NOT the 'registered' group, and I can't be bothered to move them manually every time one signs up.


Matthew Arciniega
+ Free: Ticket List & Search Mods
| Dept. Display Names
+ Free: (Almost) Perfect Outlook/HTML Tickets
+ Tutorials: SLA System Explained
| Using Template Groups
Kayako v3.20.02 | PHP: 5.2.6 | MySQL: 5.0.58 | CentOS 4
   
Reply With Quote
  (#3) Old
seamus Offline
New Member
 
Posts: 6
Join Date: Apr 2008
29-04-2008, 01:38 PM

Dang, support says its not currently possible

Time to get to work creating a custom script.

Will post it here if i get it working

Looks like it was suggested here Auto Group Users

Last edited by seamus; 29-04-2008 at 01:57 PM.
   
Reply With Quote
  (#4) Old
seamus Offline
New Member
 
Posts: 6
Join Date: Apr 2008
29-04-2008, 02:26 PM

got it, thanks to some help from other people

Code:
update swusers set usergroupid=3333 where userid in (select userid from swuseremails where email like '%domain.com');
Replace 3333 with the usergroup ID of the group you want the users to be placed into, and replace domain.com with the users's domain name.
Then, either place this code into a php file and have it called every so often using a cron, or have it execute on the database every so often.
   
Reply With Quote
  (#5) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,283
Join Date: Apr 2007
Location: Toronto Canada
29-04-2008, 02:31 PM

Quote:
Originally Posted by seamus View Post
got it, thanks to some help from other people

Code:
update swusers set usergroupid=3333 where userid in (select userid from swuseremails where email like '%domain.com');
Replace 3333 with the usergroup ID of the group you want the users to be placed into, and replace domain.com with the users's domain name.
Then, either place this code into a php file and have it called every so often using a cron, or have it execute on the database every so often.
Wow, this is a great find and will be very helpful to many here.


Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
  (#6) Old
seamus Offline
New Member
 
Posts: 6
Join Date: Apr 2008
29-04-2008, 02:39 PM

Now, i wonder where it is best to put this code. The best option i can think of is to put it in its own php file (the reason for this is that you may want to have this mysql code run multiple times as you would obviously have multiple groups in many circumstances. so putting all these mysql update commands into a single self contained php file makes sense)
Then somehow add that file to the scheduler.
This is where i move to the passenger seat
   
Reply With Quote
Reply

Tags
assign

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Template Groups - A Tutorial Matthew How do I? 5 07-05-2008 11:37 AM
Templates/Themes Associating more than one User Group to a template group Aaron Feature Requests 0 12-03-2008 09:48 PM
How do I assign a user to a group support@subhub. How do I? 3 10-01-2008 05:25 PM
Tickets Ticket list & Ticket view -> Show user's group (user group) richm Feature Requests 4 26-10-2007 02:28 AM
User group manager and queue visibility ISDHK SupportSuite, eSupport and LiveResponse 0 14-11-2006 09:26 AM



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47