User cannot see the change ticket

Neetu3
Kilo Contributor

I got one ticket where user faced one problem that he cannot able to see the change ticket.

Even he is in additional contact.

I have checked from the access end..... its fine there.

Where i need to check so that he can able to see the ticket

 

find_real_file.png

 

1 ACCEPTED SOLUTION

Its not on the Change Task Table its on the Task Table.

 

Have you modified the BR like this - 

if (!gs.getUser().hasRoles() && gs.getSession().isInteractive()) { //Check if the user has no role and if the session is an actual user session
//If they DON'T have the 'itil' role then do the following...
var u = gs.getUserID(); //Get the sys_id value of the current user
var name = gs.getUserName(u);
var applis = getMyScopeAppli();
var q = current.addQuery('u_requester', u); //Modify the current query on the incident table so that if the user is listed in the 'u_requester' field they can see the record
q.addOrCondition('u_requested_for', u); //Also allow the user access if they are the Requested for

q.addOrCondition('u_additional_contact', "CONTAINS", u); //Also allow the user access if they are on Additional Contact
q.addOrCondition('cmdb_ci', 'IN', applis); //Also allow the user to view tickets on his application scope
gs.print('query restricted to user: ' + name);
}

View solution in original post

20 REPLIES 20

HI,


Create a Read ACL on change table.

 

Give below script in script section of that ACL.

 

if(gs.getUserID() == current.additional_contact)

{

answer = true;

}

else

{

answer = false;

}

 

Make sure user has proper role to see modules.

 

Thanks,
Ashutosh

Neetu3
Kilo Contributor

After impersonation, when i try to search the same change request number for which he got an additional access he got below

its in French.. which means "No record found"

find_real_file.png

There might be Business Rule which restricting the User to view the records if it is restricted by ACL then it shows Security Constraints Issue.

So check for Query Business Rule in Change Table

How to identify which business rule involve in this.

There are 52 business rules written for the change table

Look for a business rule that has when to run as Query & also you can debug if required.

 

Thanks,

Jaspal Singh

 

Hit Helpful or Correct on the impact of response.