Changed CustomerID in Active Directory to allow common view of customer tickets

Moderator: crythias

Locked
svasi
Znuny newbie
Posts: 2
Joined: 27 May 2015, 15:38
Znuny Version: 4.0.5
Real Name: Stefano Vasi
Company: Engenie

Changed CustomerID in Active Directory to allow common view of customer tickets

Post by svasi »

Hi.
My customers need to view all their company tickets, even older ones.
I've added a new field in my AD and changed the MAP in Config.pm to use this field as CustomerID instead of mail one.
Each customer can still only see only its own tickets, new or older ones.

Here is the exctract of my Config.pm

Code: Select all

# customer unique id
    CustomerKey => 'sAMAccountName',
    CustomerID => 'CustID',
    CustomerUserListFields => ['sAMAccountName', 'cn', 'mail'],
    CustomerUserSearchFields => ['sAMAccountName', 'cn', 'mail'],
    CustomerUserSearchPrefix => '',
    CustomerUserSearchSuffix => '*',
    CustomerUserSearchListLimit => 250,
    CustomerUserPostMasterSearchFields => ['mail'],
    CustomerUserNameFields => ['givenname', 'sn'],
    Map => [
      [ 'UserFirstname', 'Firstname', 'givenname', 1, 1, 'var' ],
      [ 'UserLastname', 'Lastname', 'sn', 1, 1, 'var' ],
      [ 'UserLogin', 'Login', 'sAMAccountName', 1, 1, 'var' ],
      [ 'UserEmail', 'Email', 'mail', 1, 1, 'var' ],
      [ 'UserCustomerID', 'CustomerID', 'CustID', 0, 1, 'var' ],
      [ 'UserPhone', 'Phone', 'telephonenumber', 1, 0, 'var' ],
    ],
  };
Any idea?
Stefano
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Changed CustomerID in Active Directory to allow common view of customer tickets

Post by crythias »

svasi wrote:My customers need to view all their company tickets, even older ones.
Hello, and welcome to the OTRS volunteer forum.

Company Tickets is based upon the CustomerID field. Customers by default have their email address as CustomerID. They should see all tickets that exist that match their login in "My Tickets" and match their customer_id in "Company Tickets". (Subject to the ticket existing and in queues that match groups that the Customer is a member of, if CustomerGroupSupport is enabled, or any queue, if CustomerGroupSupport is not enabled.)
Changing a customer's login or customer_id won't retroactively adjust the tickets stored values of login or customer_id, but Generic Agent can do that.
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
svasi
Znuny newbie
Posts: 2
Joined: 27 May 2015, 15:38
Znuny Version: 4.0.5
Real Name: Stefano Vasi
Company: Engenie

Re: Changed CustomerID in Active Directory to allow common view of customer tickets

Post by svasi »

Hi.
Thanks for your prompt reply.
I've tried to change CustomerID from admin console (Customer User Management) but when I submit the change of the value in the field CustomerId, OTRS says: Not supported for this module!

:o
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Changed CustomerID in Active Directory to allow common view of customer tickets

Post by crythias »

svasi wrote:I've tried to change CustomerID from admin console (Customer User Management) but when I submit the change of the value in the field CustomerId, OTRS says: Not supported for this module!
I'm going to look into my crystal ball ... it's really pretty, btw, has as much information as you've already provided so... I'm going to guess you're using LDAP which is read only.
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
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Changed CustomerID in Active Directory to allow common view of customer tickets

Post by crythias »

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
Locked