VICIdial: "Sorry, you are not allowed to login to this campaign"
As VICIdial prints it
Sorry, you are not allowed to login to this campaign:
Where it appears. On the agent screen, after the user and password are accepted, with the campaign ID after the colon and a new login form under it.
To the point
The campaign is not in the Allowed Campaigns of the user's group. Tick it there, or move the user to a group that has it.
What it means
Once the user and password are accepted, the agent screen reads the Allowed Campaigns list of the user's group. The login goes on only when that list holds the campaign ID, or the entry ALL-CAMPAIGNS. If it holds neither, this message is printed with the campaign ID after the colon.
The match is on the whole ID with a space on each side of it, and capitals make no difference.
This test runs before the one for an inactive campaign. An agent who sees this message has not yet been told whether the campaign is switched on.
Causes
- The campaign is not ticked for that group. A campaign made after the group was set up is not in the group's list, unless the group has ALL-CAMPAIGNS.
- The user is in another group than you think. The list that counts belongs to the User Group named on the user record.
- The agent chose from the first list. When the login page opens it does not know the user yet, so the Campaign list holds every active campaign. The list is cut down to the group's own campaigns only when the agent clicks into it after typing the user and password.
- A list written by hand. A list saved outside the admin screen with no space around each ID matches nothing.
Checks
- Users > the user. Read User Group.
- User Groups > that group. Allowed Campaigns is a column of tick boxes with "ALL-CAMPAIGNS - USERS CAN VIEW ANY CAMPAIGN" at the top. Look for the campaign ID from the message.
- Have the agent type the user and password, click into the Campaign field and read what it offers. That second list is what the group allows.
Fix
- Tick the campaign in the group's Allowed Campaigns and submit. The list is read again at every login, so the agent's next try goes through.
- Or tick ALL-CAMPAIGNS, when every member of the group may work every campaign.
- Or change User Group on the user record to a group that already has the campaign.
- Let the admin screen write the list. Do not edit the stored value yourself.
On a Trustane server
The console's user group editor offers the campaigns as tick boxes and writes the list with the spacing VICIdial matches on.
Related messages
- Campaign not active, please try again: the test that runs straight after this one.
- Login incorrect, please try again: the test that runs before it.
- Sorry, there are no available sessions: the last step of the same login.
Sources
Every statement above about VICIdial was read from its own source code at the revision given. An installed server can run another revision: compare before you rely on a line number.
- VICIdial svn r4037, www/agc/vicidial.php, lines 3017-3033: the group's Allowed Campaigns read, the match and this message
- VICIdial svn r4037, www/agc/vicidial.php, lines 3063-3070: the active-campaign test that comes after it
- VICIdial svn r4037, www/agc/vicidial.php, lines 1300-1404: the Campaign list of the login page: every active campaign until the user is known
- VICIdial svn r4037, www/agc/vdc_db_query.php, lines 1632-1681: the list rebuilt for the user's group when the agent clicks into it
- VICIdial svn r4031, www/vicidial/admin.php, lines 9473-9532: Allowed Campaigns drawn as tick boxes, ALL-CAMPAIGNS first
- VICIdial svn r4031, www/vicidial/admin.php, lines 41797-41811: the user group screen and its Allowed Campaigns row
- VICIdial svn r4031, www/vicidial/admin.php, line 27488: User Group on the user screen
- VICIdial svn r4038, www/vicidial/help_documentation.txt, line 841: the help for Allowed Campaigns
- Trustane console: the group editor writes Allowed Campaigns in the form VICIdial reads