-
Type:
Problem report
-
Resolution: Incomplete
-
Priority:
Trivial
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
Steps to reproduce:
- Create 2 template: First, Second
- Add First template to "First template group" , Second template to "Second template group"
- Create User group "Testy" with only Template permissions: "First template group"
- Create user Testowy belonging to the Testy group
- Using a user Testowy try to add 2 template via api to host:
{'jsonrpc': '2.0', 'method': 'host.update', 'params': {'hostid': '{HOST_ID}', 'templates': [{'templateid': '{FIRST_TEMPLATE_ID}'}, {'templateid': '{SECOND_TEMPLATE_ID}'}]}, 'auth': 'abcdefghijklmnoprstqxyz', 'id': XXXX}
Result:
API response 200 code
Both templates: First (with permission) and Second (without permission) is not added to host.
Expected:
A response other than 200 and no template addition is expected.