Security

users can't access result of SPL

indeed_2000
Motivator

Hi
I search exact same SPL, it run and return result with admin user, but doesn't return anything with normal user!

Workaround:
1-set permission for Datamodel And Search. (Read permisison to all)
2-set user index (setting > Access control > role > user > index)

FYI: 1-Data indexed on separate index.
2-without complete SPL I can access to the result with user like this: index="myindex" | search error*

3-inspect job : INFO UserManager - Unwound user context: myuser-> NULL

alt text

Any recommendation?
Thanks,

Labels (2)
0 Karma

gcusello
SplunkTrust
SplunkTrust

Hi @mehrdad_2000,
if you already checked the grants on indexes, did you checked the grants on the knowledge objects "RootObject.*"?

If they are ok, try to run the search in verbose Mode instead Smart Mode for normal user.

To debug your search, delete one after one the parts of the search until pipe, at first the last part, the the previous, etc...
I think that you'll find that, deleting your search until the search command, your search will give results, but without fields definitions.

Ciao.
Giuseppe

0 Karma

indeed_2000
Motivator

1- How can I check "grants on the knowledge objects "RootObject."?"
2- checked different modes.
3- only return result when remove all other part and remain just this part: index="myindex" | search error

Thanks,

0 Karma
Get Updates on the Splunk Community!

Extending Observability Content to Splunk Cloud

Watch Now!   In this Extending Observability Content to Splunk Cloud Tech Talk, you'll see how to leverage ...

More Control Over Your Monitoring Costs with Archived Metrics GA in US-AWS!

What if there was a way you could keep all the metrics data you need while saving on storage costs?This is now ...

New in Observability Cloud - Explicit Bucket Histograms

Splunk introduces native support for histograms as a metric data type within Observability Cloud with Explicit ...