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!

Archived Metrics Now Available for APAC and EMEA realms

We’re excited to announce the launch of Archived Metrics in Splunk Infrastructure Monitoring for our customers ...

Detecting Remote Code Executions With the Splunk Threat Research Team

WATCH NOWRemote code execution (RCE) vulnerabilities pose a significant risk to organizations. If exploited, ...

Enter the Dashboard Challenge and Watch the .conf24 Global Broadcast!

The Splunk Community Dashboard Challenge is still happening, and it's not too late to enter for the week of ...