we are setting the environment in sailpoint CLI through powershell. its working for production but same set of commands are not working for sandbox environment
Please check below the commands we used for prod which worked :
sail set pat
sail set auth pat
sail environment
sail environment set
Below is the error we are getting while doing same for sanbox
PS C:\Users\yrathod\Desktop\sail_2.0.2_windows_amd64\bin> ./sail conn list
Error: failed to retrieve access token. status 401 Unauthorized
We have entered correct client ID and secret for setting up the env
Hi all this is resolved. it was mostly due to old token and also i had set environment variable manually again in settigs which caused this to not work