Skip to content

[ QUESTION ] 401: access denied, invalid bearer token #481

Description

@NCothran

I am attempting to export a list of all Uninstallation tokens with the command:

Get-FalconHost -All | Get-FalconUninstallToken -Include hostname | Export-Csv .\token_list.csv -NoTypeInformation

No matter what I do it gives this:

Write-Result : {"code":401,"message":"access denied, invalid bearer token"}
At C:\Windows\system32\WindowsPowerShell\v1.0\Modules\PSFalcon\private\Private.ps1:687 char:9
+         Write-Result $Object
+         ~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidResult: (@{errors=System.Object[]}:PSObject) [Write-Result], Exception
    + FullyQualifiedErrorId : Write-Result

My API has all the required Read and Write permissions, can you tell me why this happens and how to fix it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions