Ad Widget

Collapse

Script with user input access denied for users

Collapse
This topic has been answered.
X
X
 
  • Time
  • Show
Clear All
new posts
  • marek.vesely@direct.cz
    Junior Member
    • Apr 2024
    • 5

    #1

    Script with user input access denied for users

    Hello,

    when I cal script which has user input, it calls Zabbix api: ?action=script.userinput.edit. But this api is available by default only for super admin users. So users with User and Admin roles getting access denied if they want to run script with manual input. Is there plan to fix this and add to lower roles permission to this api?

    Thank you,

    Marek
    Attached Files
  • Answer selected by [email protected] at 17-10-2024, 10:23.
    Ldzzzz
    Junior Member
    • Feb 2024
    • 14

    Hello,

    Yes, you can add permission to any role you want. Just go to role settings and activate the feature :

    Click image for larger version

Name:	image.png
Views:	113
Size:	12.4 KB
ID:	492207

    You can filter the actions allowed by API if you wish.


    Don't forget to create a user token if needed:

    Click image for larger version

Name:	image.png
Views:	113
Size:	5.0 KB
ID:	492208

    Comment

    • Ldzzzz
      Junior Member
      • Feb 2024
      • 14

      #2
      Hello,

      Yes, you can add permission to any role you want. Just go to role settings and activate the feature :

      Click image for larger version

Name:	image.png
Views:	113
Size:	12.4 KB
ID:	492207

      You can filter the actions allowed by API if you wish.


      Don't forget to create a user token if needed:

      Click image for larger version

Name:	image.png
Views:	113
Size:	5.0 KB
ID:	492208

      Comment

      Working...