Hi Team,
We are seeing error like"user could not act as admin in splunk" for the Rest API call "/servicesNS/admin/search/search/jobs/rt_scheduler__admin__search__RMD55bf3dd661d6ebedc_at_1756741585_99.3/events?output_mode=json"
I suspect the error message stems from a non-admin user trying to run a command as an admin user (the "admin" in 'servicesNS/admin/...'). Try running the command /services/search/jobs/rt_scheduler__admin__search__RMD55bf3dd661d6ebedc_at_1756741585_99.3/events?output_mode=json or /servicesNS/-/search/search/jobs/rt_scheduler__admin__search__RMD55bf3dd661d6ebedc_at_1756741585_99.3/events?output_mode=json to get the information available to the user (which may be nothing).
If those don't give the desired results then you may need to give the user the list_search_scheduler or admin_all_objects capability.
BTW, that endpoint is deprecated. The user should switch to the v2 endpoint.
Hi @msunilreddy
How are you interacting with Splunk to get this error? Are you using the REST API in order to retrieve the alerts/events or is this from within Splunk itself?
Did the search that you are trying to get results for get run as the admin as a private search, not shared in the app?
🌟 Did this answer help you? If so, please consider:
Your feedback encourages the volunteers in this community to continue contributing
I am using RestAPI calls.