ACL not work

Moderator: crythias

Locked
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

ACL not work

Post by yuri0001 »

Hi!
I create such ACL:

Code: Select all

    $Self->{TicketAcl}->{'051 ACL-Customer-Ограничение выбора очереди для КУИ'} = {
        Properties => {
            Frontend => {
               Action => ['CustomerTicketMessage']
                        },
            CustomerUser => {
                Group_rw => ['Cust_KUI'],
                            },
                      },
        Possible => {
            Ticket => {
                QueueID => ['21','2','41']
                      },
                    },
    };
#########################################################################
    $Self->{TicketAcl}->{'052 ACL-Customer-Ограничение выбора очереди для Терр_Уобр_УАГ_Укульт_Ленина_117'} = {
        Properties => {
            Frontend => {
               Action => ['CustomerTicketMessage']
                        },
            CustomerUser => {
               Group_rw => ['Cust_Cult_Ed_Arch'],
                            },
                      },
        Possible => {
            Ticket => {
                QueueID => ['24','2','41']
                      },
                    },
    };
but it does'nt work.
Some customers have rw rights in groups - Cust_Cult_Ed_Arch & Cust_KUI but while creating web ticket from customer form queues not restricted by list in ACL
Why? :(
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: ACL not work

Post by crythias »

You shouldn't need an ACL for this purpose. The group membership should be enough to restrict the available queues. By default, all customers are part of the "users" group, which may already apply to the other queues.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: ACL not work

Post by yuri0001 »

Probably, it's my bad English. :?
I want to some customers don't can create tickets for some queues and this queues don't appear in queue list for them by group membership.
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: ACL not work

Post by yuri0001 »

I'll try this:

Code: Select all

    $Self->{TicketAcl}->{'051 ACL-Customer-Ограничение выбора очереди для КУИ'} = {
        Properties => {
            Frontend => {
               Action => ['CustomerTicketMessage']
                        },
            CustomerUser => {
                Group_rw => ['Cust_KUI'],
                            },
                      },
        Possible => {
           Queue => {
                QueueID => ['21','2','41']
                      },
                    },
    };
But also not work! :(
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: ACL not work

Post by yuri0001 »

Anybody can help me? :(
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ACL not work

Post by jojo »

is CustomerGroup support activated?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: ACL not work

Post by yuri0001 »

Yes! Activated.
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ACL not work

Post by jojo »

customers can only use Queues which have groups they are assigned to
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: ACL not work

Post by yuri0001 »

But, if the ticket will moved in Queue wich group not assigned to customer, he recieve message that access denied.
I want only forbid to customer to create tickets for some Queues, but tickets can moved to another queue without limit to displaying it (ticket) to customer.
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
jojo
Znuny guru
Posts: 15020
Joined: 26 Jan 2007, 14:50
Znuny Version: Git Master
Contact:

Re: ACL not work

Post by jojo »

did you try to not use UTF-8 characters in the name of the ACL?
did you try other match criterias. like customer id instead of group?
"Production": OTRS™ 8, OTRS™ 7, STORM powered by OTRS
"Testing": ((OTRS Community Edition)) and git Master

Never change Defaults.pm! :: Blog
Professional Services:: http://www.otrs.com :: enjoy@otrs.com
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: ACL not work

Post by yuri0001 »

Thanks! I will try it later. :)
I understand your earlier tips without ACL (it depends of rights -ro/rw).
But my interest for decision this problem with ACL - is interesting me whatever!
I will write later about my attempts wit ACL :?
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: ACL not work

Post by yuri0001 »

But, without ACL customer with -ro rights - not see the queue in web-form - it's good, but can't answer to owner if ticket moved to this queue - it's bad.
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
skullz
Znuny superhero
Posts: 658
Joined: 24 Feb 2012, 03:58
Znuny Version: LTS and Features
Real Name: Mo Azfar
Location: Kuala Lumpur, MY
Contact:

Re: ACL not work

Post by skullz »

i dont know this is right or not,
but based on http://doc.otrs.org/3.2/en/html/customi ... -reference

QueueID only can be used at "Properties" block, not "Possible" or "NotPossible" block

maybe try to write

Code: Select all

 $Self->{TicketAcl}->{'051 ACL-Customer-Ограничение выбора очереди для КУИ'} = {
        Properties => {
            Frontend => {
               Action => ['CustomerTicketMessage']
                        },
            CustomerUser => {
                Group_rw => ['Cust_KUI'],
                            },
                      },
        Possible => {
            Ticket => {
                Queue => ['Queue 1',' Queue 2','WhatQueue']
                      },
                    },
    };

My Github
OTRS CE/LTS Discord Channel
Cant Update Package Anymore ? Check This

Professional OTRS, Znuny & OTOBO services: efflux.de/en
Free and premium add-ons: English
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: ACL not work

Post by yuri0001 »

Hi!
I've already tried this construction, but it not work all the same. :(
By the way, I'll try to create this ACL in 3.3.0 beta3 ACL Editor. He changes the order of phrase Action & CustomerUser in Properties. Is it right or no matter?
But it not work all the same.
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
yuri0001
Znuny superhero
Posts: 630
Joined: 17 Mar 2011, 14:40
Znuny Version: 5.0.6
Real Name: Yuri Kolesnikov
Location: Russia

Re: ACL not work

Post by yuri0001 »

Hi!
Yes, it works right in 3.3.0! :D There where my semantic error.
But! I'll try there quit clear example. In work (productive) system i need to use Russian (cyrillic) names of Queues. If I need to do somewhat to force to work it properly? :?
Best regards Yuri Kolesnikov
OTRS 5.0.14, ITSM 5.0.14
SUSE 13.2, MariaDB 10.0.22(productive)
OTRS 5.0.14, ITSM 5.0.14(test)
Locked