Show Assignment Group for Particular Users only

Mahesh Pydisett
Tera Contributor

Hi Team,

 

I have one requirement i.e., if specific user logged in then they are asking to show the particular assignment group.

Scenario:

We have one Assignment group - Aero Sensing VS and this assignment group should be visible when Abel Tuter logged in.

If you guys have any idea on this, please help me on this scenario.

 

Thanks in Advance!!!

3 REPLIES 3

Ruhee Gupta
Tera Contributor

Hi Mahesh,

 

Have you tried by creating a BR to show the assignment group.

 

var user = gs.getUser();

if (user.getID() == 'specific_user_sys_id')

var groupGR = new GlideRecord('sys_user_group');

if (groupGR.get('sys_id_of_the_assignment_group')) 

{

current.assignment_group = groupGR.sys_id; } }

 

Please let me know if it helps you.

Sharif Nawaz
Tera Contributor

Hi Mahesh,

 

Instead of writing multiple lines code, make use of the Decision Table.\

Create a Decision Table.

 

After that, In the Input : Select Label as User

Type Reference & Reference to sys_user table

 

In the Decision Table Condition

 

In Condition, select label as User

Input as Reference

Table as sys_user

 

In Result, select label as Assignment group

Result Type as Reference

Result Table as sys_user_group

 

After creating, with the help of script you can retrieve the value from decision table.

 

Hope it answers the question, Mark this as helpful, if it helps.

 

Regards,

Nawaz

Brad59
Giga Guru

Show it where? Should Abel Tuter have read/write access in the Group table? Should it be visible on Incidents, Tasks, Cases, etc.?