Splunk Dev

Splunk rest API (list all users)

splunk_luis12
Path Finder

Hi folks,

I'm tying to list all users from my Splunk cloud using this link:

https://docs.splunk.com/Documentation/SplunkCloud/latest/RESTREF/RESTaccess#authentication.2Fusers:~...

However I'm using a custom role who just have the following capabilities:

 

* admin_all_objects
* rest_access_server_endpoints
* rest_apps_management
* rest_apps_view
* rest_properties_get
*edit_user
*search

The user is unable to pull all users. My assumption is that as this users does not inheritance any other role then it is not able to list all users, as per the grantableRoles.

If I'm right, what chance do I have for this user to pull all users with the rest API? or what capabilities I'm missing?

Thanks in advance,

 

0 Karma

splunk_luis12
Path Finder

Hi @richgalloway I already tried with | rest /servicesNS/-/-/admin/users as well but I got the same result even using the admin_all_objects capability.

0 Karma

richgalloway
SplunkTrust
SplunkTrust

The admin_all_objects capability should be all you need.

Have you tried using servicesNS?

| rest /servicesNS/-/-/admin/users
---
If this reply helps you, Karma would be appreciated.
0 Karma
Get Updates on the Splunk Community!

Splunk App for Anomaly Detection End of Life Announcement

Q: What is happening to the Splunk App for Anomaly Detection?A: Splunk is officially announcing the ...

Aligning Observability Costs with Business Value: Practical Strategies

 Join us for an engaging Tech Talk on Aligning Observability Costs with Business Value: Practical ...

Mastering Data Pipelines: Unlocking Value with Splunk

 In today's AI-driven world, organizations must balance the challenges of managing the explosion of data with ...