Having trouble using the sail search command with the CLI

Getting 404 Error while connecting with Oauth and PAT in search query.
bash-3.2# sail search query “name:a*” --indices identities
Opening browser for authentication

bash-3.2# sail search query “name:a*” --indices identities
Opening browser for authentication

Hey @ajaypathak1,

It sounds like there may be issues with the tenant configured, can you confirm what values you set it up with for that environment?

Here is the input that I put while configuring for Oauth and PAT.

SAIL_BASE_URL=https://{tenant}.api.identitynow.com

SAIL_CLIENT_ID={clientID}

SAIL_CLIENT_SECRET={clientSecret}

It’s a newly configured tenant and following this URL for Mac.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.

Hey @ajaypathak1,

The environment variable configuration is only compatible with PAT authorization, to use OAuth you have to configure the environments INthe CLI, not in the environment.

1 Like