[SOLVED] Regarding ACL based on CustomerID in ticket creation form

Moderator: crythias

Locked
sansflance
Znuny newbie
Posts: 14
Joined: 18 Dec 2018, 16:38
Znuny Version: OTRS6.0
Real Name: Sam

[SOLVED] Regarding ACL based on CustomerID in ticket creation form

Post by sansflance »

Hi,

I have tried to create below ACL which should work in Ticket Creation Form. My goal is after the Customer User is selected, based on the CustomerID of that customer user, values of a dynamic field dropdown should be changed. Below is my ACL and it is not working, can you please advise what am i missing.
Note: I have used RegExp *SG* and SG, also tried to give complete name in possible value. None of them worked out.
But if i change the config match to some other dynamic field it is working fine.

- ChangeBy: admin
ChangeTime: 2019-09-09 12:41:44
Comment: ''
ConfigChange:
Possible:
Ticket:
DynamicField_DDAffectedLocation:
- '[RegExp]*SG*'
ConfigMatch:
Properties:
Ticket:
CustomerID:
- BKSG
CreateBy: admin
CreateTime: 2019-08-29 00:11:35
Description: ''
ID: 19
Name: 1ACLTest
StopAfterMatch: 0
ValidID: 1
root
Administrator
Posts: 3961
Joined: 18 Dec 2007, 12:23
Znuny Version: Znuny and Znuny LTS
Real Name: Roy Kaldung
Company: Znuny
Contact:

Re: Regarding ACL based on CustomerID in ticket creation form

Post by root »

Hi,

Check this example in the manual to see how to match CustomerIDs: https://doc.otrs.com/doc/manual/admin/6 ... .7.2.5.4.1

- 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 ?
sansflance
Znuny newbie
Posts: 14
Joined: 18 Dec 2018, 16:38
Znuny Version: OTRS6.0
Real Name: Sam

Re: Regarding ACL based on CustomerID in ticket creation form

Post by sansflance »

Thankyou Roy, I have referred it and used config match as below.

ConfigMatch:
Properties:
Ticket:
CustomerID:
- BKSG

However changing config match to below resolved my problem, As i read CustomerUser refers to logged in customer user , but this is working in agent ticket creation page as well.

ConfigMatch:
Properties:
CustomerUser:
CustomerID:
- BKSG

This can be marked as closed.
Locked