Access control to the ticket page for requested item based on catalog item variables

ykoba
Tera Contributor

Hello.

I would like to allow user who is set to the variable "manager (Type:Reference)" of the catalog item to have access to the ticket page for the requested item.

The user set to the variable "manager" does not have any roles.

Is there any way to achieve this except by using a watch list and role assignments?

 

Version: Vancouver

1 ACCEPTED SOLUTION

siva krishna M2
Tera Guru

Hello @ykoba 

 

Create a read acl on requested item with script has below

var b = current.manager;

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

{

answer = true

}

 

if it helps kindly click on like icon and mark it as accepted solution

View solution in original post

3 REPLIES 3

siva krishna M2
Tera Guru

Hello @ykoba 

 

Create a read acl on requested item with script has below

var b = current.manager;

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

{

answer = true

}

 

if it helps kindly click on like icon and mark it as accepted solution

Hello @siva krishna M2 ,

Thank you so much for your quick response.

It worked with the following code.

var b = current.variables.manager;

if(gs.getUserID()==b)

{

answer = true

}

 Thanks,

Sohail Khilji
Kilo Patron
Kilo Patron

Hi @ykoba ,

 

Your question is not clear can you explain a little bit more if possible with screenshots ?

 


☑️ Please mark responses as HELPFUL or ACCEPT SOLUTION to assist future users in finding the right solution....

LinkedIn - Lets Connect