skip to content
Alvin Lucillo

Error service account auth

/ 1 min read

If you’ve encountered the error below, don’t worry about it; just complete the rest of the steps

? Client ID: *****
? Client Secret: [? for help] **************************************************
There was an error fetching your organizations: Get "https://cloud.mongodb.com/api/atlas/v2/orgs?includeCount=true&itemsPerPage=500&name=&pageNum=1": oauth2: "invalid_client" "Invalid credentials provided"

? Do you want to enter the Organization ID manually? No
Skipping default organization setting
? Do you want to enter the Project ID manually? Yes
? Default Project ID: *****
? Default Output Format: plaintext

In the next atlas auth login, the CLI will ask the credentials and default output format again but not the organization and project IDs.