"How do I assign a service to everyone in a Company?"
One thought is to make the service a default service and then restrict who sees it.
This requires a bit of planning and thought, but if every CustomerID has its own ACL or there's a default ACL at the end of the parsing with "PossibleNot" of Customer-Specific-Services...
So, let's say CompanyA has 1,000 people, all using the same Service. That's pretty tedious to assign that service to all of CompanyA. Why not make it a default service?
Then we can make sure CompanyA has access to those services.
Code: Select all
$Self->{TicketAcl}->{'CompanyAServices'} =
{
# match properties
Properties => {
CustomerUser => {
UserLogin => ['some login'],
#or instead
UserCustomerID => ['CompanyIdentifier'],
},
},
Possible => {
Ticket => {
Service => ['CustomerA::toilet', 'CustomerA::sink', 'CustomerA::tub'],
},
},
};
Then we add another ACL at the end:
Code: Select all
$Self->{TicketAcl}->{'ZZZ-HiddenServices'} =
{
# match properties
Properties => {
#match always
},
PossibleNot => {
Ticket => {
Service => ['CustomerA::toilet',
'CustomerA::sink',
'CustomerA::tub'],
},
},
};