CA Service Management

 View Only
  • 1.  Disabling The attachment Tab for end users

    Posted Jun 09, 2023 04:36 PM

    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 



  • 2.  RE: Disabling The attachment Tab for end users

    Posted Jul 05, 2023 06:09 AM

    First of all Check Access Control, Check Identity User Roles, Restricting Attachment Access and Customization.




  • 3.  RE: Disabling The attachment Tab for end users

    Posted Feb 09, 2025 02:24 AM

    Thanks jenna!




  • 4.  RE: Disabling The attachment Tab for end users

    Broadcom Employee
    Posted Feb 13, 2025 02:42 AM

    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