Show Assignment Group for Particular Users only
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 04:29 AM
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!!!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 04:48 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 05:29 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-25-2024 08:30 AM
Show it where? Should Abel Tuter have read/write access in the Group table? Should it be visible on Incidents, Tasks, Cases, etc.?