Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Consult query in campaign

NID27
Regular Contributor
Regular Contributor

Hello,

I want the consult option should display just one particular person irrespective of who logged in.

For eg: If anyone selects a consult option it should option it should always display my name "nsharma".

Please help me with the query.

3 REPLIES 3

rushikeshvartak
All-Star
All-Star

Select u from Users u where 1=1 and u.id in (select distinct id from Users where username='nsharma')

 


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

Raghu
All-Star
All-Star

@NID27  try below

select u from Users u where 1=1 and u.id =:loggedInUser


Thanks,
Raghu
If this reply answered your question, Please Accept As Solution and hit Kudos.

NID27
Regular Contributor
Regular Contributor

Thaks Rushi and Raghu for the replies. The query provided by Rushi Worked.