How to display records based on the role/group in list view

Naga Surendra 1
Mega Expert

Hi,

we have two different assignment groups in Change Request i.e Group A and Group B. If logged in person belongs to Group A then he can see change request which are assigned to Group A request only in List view and he couldn't to access any other request.

Please help me to achieve.

 

Regards,

Naga. 

1 ACCEPTED SOLUTION

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

You can write a before query BR on change table:


Use below code:

var usr = gs.getUserId().isMemberOf(current.assignment_group);

if(usr)

var qc = current.addQuery("assignment_group",current.assignment_group);

 

you can use ACL as well

 

Thanks,

Ashutosh

View solution in original post

1 REPLY 1

Ashutosh Munot1
Kilo Patron
Kilo Patron

Hi,

You can write a before query BR on change table:


Use below code:

var usr = gs.getUserId().isMemberOf(current.assignment_group);

if(usr)

var qc = current.addQuery("assignment_group",current.assignment_group);

 

you can use ACL as well

 

Thanks,

Ashutosh