Only Requested by's Manager can access the Catalog Item form

Ankit Balapure
Tera Contributor

I have created the attached Catalog item form, I want to make this visible only for the user who is in the Manager variable (who is the Manager of the user which is present in the Name variable), could anyone tell me how we can do that?

catalog itemcatalog item

 

13 REPLIES 13

Hi @Ankur Bawiskar,

 

Actually I don't want to show the form to Sourov always, it's an example. Now, I will tell you the actually requirement -

I want to send the notification to some recipients in which the user's manager also included, in that I am sending the link of the catalog item with user's info thru url parameter. So, when the manager receives the link and after clicking on that link that manager will be redirected to the portal and that Catalog item will be opened with the users info, so above catalog item is the example of this. However that same notification will be sent to some other recipients too, but those recipients are not the manger of that user so we don't need to show that form to those recipients other than the Manager.

 

Thanks,

Ankit

@Ankit Balapure 

So the user criteria will take care of this.

Even if they directly visit that catalog item the user criteria will tell you are not authorized to submit via OOB logic

What's the issue then? Your requirement is achieved using the user criteria script

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Hi @Ankit Balapure 

 

I am not a core developer, so scripting i cant help much. You can follow Ankur, and reply here. 

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Hi @Dr Atul G- LNG , 

 

I appreciate your time.

 

Thanks,

Ankit