You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
CLI login fails with 403 when browser session is under an organization account #1203
When a user is logged into Apify Console under an organization account in the browser, running apify login in the terminal and selecting a personal account fails with a 403 error.
Steps to reproduce:
Log into Apify Console in the browser under an organization account.
Run apify login in the terminal.
Select personal account as the login target.
Expected behavior:
Login succeeds under the selected personal account.
Actual behavior:
The CLI fails with:
Failed to handle request 'POST - /api-keys'
{
"response": {
"status": "error",
"statusCode": 403,
"errorCode": "insufficient-permissions",
"errorMessage": "Insufficient permissions for users. Make sure you're passing a correct API token and that it has the required permissions."
},
"request": {
"url": "https://console-backend.apify.com/api-keys",
"method": "post",
...
}
}
Notes:
The inverse works fine: when the browser session is under a personal account, the CLI can log in to any target (personal or organization) without issues.
Activity