What is the bug?
The tenant doesn't switch to default Private when logging in as a different user who doesn't have permission to the tenant.
How can one reproduce the bug?
Steps to reproduce the behavior:
Launch opensearch-dashboards.
Login as admin and create a new user.
Switch to global tenant on admin user.
Log out as admin and log-in as the new user.
Click on Switch tenant from user information menu and see error
What is the expected behavior?
Tenant should switch to a default when currently logged in user doesn't have permission to the tenant stored in the cookie.
What is the bug? The tenant doesn't switch to default
Private
when logging in as a different user who doesn't have permission to the tenant.How can one reproduce the bug? Steps to reproduce the behavior:
What is the expected behavior? Tenant should switch to a default when currently logged in user doesn't have permission to the tenant stored in the cookie.
Do you have any screenshots?
https://github.com/opensearch-project/security-dashboards-plugin/assets/35282393/7385302b-51fa-4aa4-9e94-9475580e2f32