普通用户增加了基础设施权限,调用接口删除机器提示没权限No permission to operate the targets:

Viewed 27

image.png

No permission to operate the targets:

root用户跑正常

2024-01-22 15:22:39,725 DEBUG 请求url: http://n9e.XXX.com:80/api/n9e/targets, 请求方式:delete, 请求头:{'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2Nlc3NfdXVpZCI6ImVhMzgyNmQ4LTlhMmEtNDIyNy1iNDAyLTU4Y2YwYmZlZTYwMiIsImF1dGhvcml6ZWQiOnRydWUsImV4cCI6MTcwNTk5ODE1OSwidXNlcl9pZGVudGl0eSI6IjQtZGFpbHlfcmVwb3J0ZXIifQ.3Kc0W_WNk04E2lnwFMmO0mBcez4jP29wtP821zlNTF4', 'Content-Type': 'application/json', 'X-Cluster': 'Default'}, 请求参数: {"idents": ["mcyw_test_S1_192.168.8.1051"]}, 请求结果:<Response [403]>

1 Answers

ident 是否属于用户所属业务组呢,只能删本业务组的,root特殊有全部权限