Security

How to delete authorization token for non-existent user?

justynap_ldz
Path Finder

Hello,

Does anyone know how to delete an authorization token for no more exisiting account in Splunk?
We have tried it in Web, but Splunk "Could not get info for non-existent user"

justynap_ldz_1-1689923652683.png

We have tried it on servers, too:
For curl -k -u <username>:<password> -X DELETE https://<server>:<management_port>/services/authorization/tokens/<token_user> -d id=<token_id>
we get:
<?xml version="1.0" encoding="UTF-8"?>
<response>
<messages>
<msg type="ERROR">Could not find object id=xxxxx</msg>
</messages>
</response>

Is there any dir or file where authentication tokens are saved on Search Heads? 
We need to get rid of internal errors that we receive for this non-existent user, but without token removal it will not be possible

Many thanks in advance for help!

Greetings,
Justyna

Labels (4)
0 Karma
1 Solution

isoutamo
SplunkTrust
SplunkTrust

Hi

GUI didn't remove it? As I understand that pop up it still give you a possibility to remove token, even it cannot found user?

One option what you could try is just create a local Splunk user (exact same user id as earlier), then remove token and then remove user?

r. Ismo

View solution in original post

isoutamo
SplunkTrust
SplunkTrust

Hi

GUI didn't remove it? As I understand that pop up it still give you a possibility to remove token, even it cannot found user?

One option what you could try is just create a local Splunk user (exact same user id as earlier), then remove token and then remove user?

r. Ismo

justynap_ldz
Path Finder

Hi @isoutamo
It worked, thank you for your prompt reply!
Much appreciated

BR,
Justyna

0 Karma
Get Updates on the Splunk Community!

.conf24 | Day 0

Hello Splunk Community! My name is Chris, and I'm based in Canberra, Australia's capital, and I travelled for ...

Enhance Security Visibility with Splunk Enterprise Security 7.1 through Threat ...

(view in My Videos)Struggling with alert fatigue, lack of context, and prioritization around security ...

Troubleshooting the OpenTelemetry Collector

  In this tech talk, you’ll learn how to troubleshoot the OpenTelemetry collector - from checking the ...