acl to filter state list SOLVED

Moderator: crythias

Post Reply
rodolfor
Znuny newbie
Posts: 89
Joined: 11 Jun 2020, 14:56
Znuny Version: 6.0.27
Real Name: Rodolfo Rughi
Company: none

acl to filter state list SOLVED

Post by rodolfor »

Hi all.
In communication forms, I need to filter only a subset of states available for agent, in function of the queue of the ticket.
In this case, if the queue belongs to group 9 I want to show only states with name starting by "SC "

But this ACL do not change nothing in state list.
Where I'm wrong ?
Thanks

Code: Select all

  ConfigMatch:
    Properties:
      Frontend:
        'Frontend ':
        - AgentTicketPhone
        - AgentTicketEmail
      Queue:
        GroupID:
        - '9'
  ConfigChange:
    Possible:
      Ticket:
        State:
        - '[regexp]^SC\s'
Last edited by rodolfor on 13 Mar 2023, 16:00, edited 1 time in total.
root
Administrator
Posts: 3960
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: acl to filter state list

Post by root »

Hi,

Your frontend part never matches. The matching part fo your ACL should look like this:

Code: Select all

Properties:
      Frontend:
        Action:
        - AgentTicketPhone
        - AgentTicketEmail
      Queue:
        GroupID:
        - '9'
See also the possible properties in the manual.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
rodolfor
Znuny newbie
Posts: 89
Joined: 11 Jun 2020, 14:56
Znuny Version: 6.0.27
Real Name: Rodolfo Rughi
Company: none

Re: acl to filter state list

Post by rodolfor »

Thanks Roy.
I discovered thant case sensitive is crucial.
This ACL works:

Code: Select all

  StopAfterMatch: 0
  ValidID: 1

  ConfigMatch:
    Properties:
      User:
        Group_rw:
        - Customer service

  ConfigChange:
    Possible:
      Ticket:
        State:
        - '[regexp]^SC\s'
        - '[regexp]^010\s'
        - '[regexp]^020\s'
        - '[regexp]^110\s'
root
Administrator
Posts: 3960
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: acl to filter state list

Post by root »

rodolfor wrote: 13 Mar 2023, 16:00 Thanks Roy.
I discovered thant case sensitive is crucial.
This ACL works:

Code: Select all

  StopAfterMatch: 0
  ValidID: 1

  ConfigMatch:
    Properties:
      User:
        Group_rw:
        - Customer service

  ConfigChange:
    Possible:
      Ticket:
        State:
        - '[regexp]^SC\s'
        - '[regexp]^010\s'
        - '[regexp]^020\s'
        - '[regexp]^110\s'
Yes, but this ACL is quite different from the 1st one. Here are the agent's groups checked, not the queue groups.

- Roy
Znuny and Znuny LTS running on CentOS / RHEL / Debian / SLES / MySQL / PostgreSQL / Oracle / OpenLDAP / Active Directory / SSO

Use a test system - always.

Do you need professional services? Check out https://www.znuny.com/

Do you want to contribute or want to know where it goes ?
rodolfor
Znuny newbie
Posts: 89
Joined: 11 Jun 2020, 14:56
Znuny Version: 6.0.27
Real Name: Rodolfo Rughi
Company: none

Re: acl to filter state list SOLVED

Post by rodolfor »

You have reason.
This solution works only because this groups are the same.
I choose this solution because otherwise, if I extract the groupID from property > ticket > queue , in the "Close ticket" action (I do not have the queue displayed) the filter was not applied.
Post Reply