Hi Mounika,
If I understand your question, by end User you meant the Affected End User in the Requests/Incidents form.
If its the case, You can customize the detail_in.htmpl form by adding a check like:
"$args.requested_by" == "$cst.id" || "$SESSION.ROLE_ID == "10002"> for Attachments Tab to get disabled.
where
- requested_by is the Requestor of ticket, $cst is the logged in user
- 10002 is the role id of Administrator
<PDM_IF "$args.id" == "0" || ("$args.requested_by" == "$cst.id" || "$SESSION.ROLE_ID == "10002")>
<PDM_MACRO NAME = TAB TITLE="<PDM_I18N>Attachments</PDM_I18N>" src="OP=SHOW_DETAIL+HTMPL=xx_attmnt_tab.htmpl+FACTORY=cr+PERSID=$args.persistent_id+NO_DP=yes" id=attmnt height=300>
<PDM_ELSE>
<PDM_IF "$args.requested_by" == "$cst.id" || "$SESSION.ROLE_ID == "10002">
<PDM_MACRO NAME = TAB TITLE="<PDM_I18N>Attachments</PDM_I18N>" src="OP=SHOW_DETAIL+HTMPL=xx_attmnt_tab.htmpl+FACTORY=cr+PERSID=$args.persistent_id+SDBP_FLAG=1" id=attmnt height=300>
</PDM_IF>
</PDM_IF>
Please test this thoroughly before moving to production.
Regards,
Rajesh
Original Message:
Sent: Feb 09, 2025 02:24 AM
From: Mounika Dande
Subject: Disabling The attachment Tab for end users
Thanks jenna!
Original Message:
Sent: Jul 05, 2023 05:18 AM
From: Jenna Foster
Subject: Disabling The attachment Tab for end users
First of all Check Access Control, Check Identity User Roles, Restricting Attachment Access and Customization.
Original Message:
Sent: Jun 09, 2023 07:20 AM
From: Mounika Dande
Subject: Disabling The attachment Tab for end users
Hi Guys,
In Requests/Incidents form is there any possibility to restrict the end users and enabling the attachment tab only for Requester and Administrator?
Kindly keep your suggestions..
Regards,
Mounika