Bundle and current-user commands fail with 404 SCIM_404 ("No user found with ID <group-id>") when authenticated as a role (RBAC Public Preview)
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 45/100
- Tipo de issue
- Bug
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- go
- Domínio
- authentication, cli
Direção de pesquisa
Comece com o comando current-user me e o caminho de inicialização do bundle que resolvem SCIM /Me, depois reproduza a falha usando um perfil com escopo de função e bundle validate. Determine se a CLI pode evitar a busca ou precisa informar a limitação da função, e cubra o comportamento escolhido com testes; considera-se concluído quando a autenticação da função não produzir mais um SCIM_404 opaco durante o fluxo de trabalho compatível.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Describe the issue
When authenticated to a workspace as a role (RBAC Public Preview, where a role is backed by a group) via databricks auth login (selecting the role in the browser flow), any command that resolves the current user fails:
Error: Could not handle request. Failed to getMe in common handler. No user found with ID <group-id>. (404 SCIM_404)
Endpoint: GET https://<workspace-url>/api/2.0/preview/scim/v2/Me?
HTTP Status: 404 Not Found
API error_code: SCIM_404
The ID in the error is the ID of the group backing the assumed role, not a user ID. The SCIM /Me endpoint apparently tries to resolve the caller as a user, but the token principal is a group, so the lookup 404s.
This is not limited to current-user me. All bundle commands (including bundle validate) fail at initialization, because the bundle library unconditionally resolves the current user via SCIM /Me to populate workspace.current_user — even when the bundle configuration does not reference ${workspace.current_user} at all. As a result, Databricks Asset Bundles are entirely unusable when authenticated as a role.
Steps to reproduce
- Enable the RBAC preview (account + workspace level) and have Assume permission on a role (group) in the workspace.
databricks auth login --host <workspace-url> -p MAINTAINERand select the role (not the user identity) in the browser.- Run either of:
databricks current-user me -p MAINTAINERdatabricks bundle validate -t prod -p MAINTAINER
Expected behavior
One of:
- SCIM
/Me(andworkspace.current_user) resolves to the assumed role's principal (the group), or - bundle commands skip current-user resolution when the config does not reference
${workspace.current_user}, or - the CLI returns a clear error stating that this operation is unsupported when acting as a role.
Neither the switch-roles docs (which document the CLI login flow) nor the RBAC limitations page mention this limitation. If this is a known backend limitation of the preview, documenting it (and having bundle fail with an actionable message) would already help.
Actual behavior
Error: Could not handle request. Failed to getMe in common handler. No user found with ID <group-id>. (404 SCIM_404)
Endpoint: GET https://<workspace-url>/api/2.0/preview/scim/v2/Me?
HTTP Status: 404 Not Found
API error_code: SCIM_404
API message: Could not handle request. Failed to getMe in common handler. No user found with ID <group-id>.
Environment
- Databricks CLI version: v1.12.1
- OS: macOS 26.6.2
- Cloud: AWS
- Auth type: OAuth U2M (
databricks auth login), role selected in browser - RBAC Public Preview: enabled
Additional context
- Authenticating the same host as my user identity works as expected; only role-scoped tokens fail.
- Calling the endpoint directly reproduces the error, so the failure is server-side; this issue is about the CLI's hard dependency on
/Memaking bundles unusable under RBAC:
databricks api get /api/2.0/preview/scim/v2/Me -p MAINTAINER→ same404 SCIM_404. - Related: PR #5822 adds a
--group-idflag to assume a group during OAuth login. Once that lands, this bug becomes more visible, since role login gets easier while bundles still cannot run under a role.
- Linguagem predominante
- Go
- Estrelas
- 416
- Forks
- 256
- Merge médio
- 1d 22h
- PRs com merge (30d)
- 206
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Tem um modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de databricks/cli
-
Apps commands only accept relative path to app.ymlTalvez já em andamento @yuri-rod assumiu há 28 dias. AbertaCLI
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 82/100
databricks/cli#6910 ·
Mantenedores costumam responder em até 1 dia
-
DABs
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
databricks/cli#6670 · 1 reação ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
databricks/cli#7256 ·
Mantenedores costumam responder em até 1 dia
-
bundle validate does not catch missing trigger.table_update.condition with multiple tablesTalvez já em andamento @yuri-rod assumiu há 14 dias. AbertaDABs Enhancement
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 72/100
databricks/cli#7101 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
databricks/cli#7100 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de databricks/cli
Issues semelhantes
-
date_time, url_encode, html_escape, to_unix_time, contains_all and contains_any panic when called without argumentsTalvez já em andamento @antcybersec assumiu hoje. Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
projectdiscovery/dsl#372 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
JuliusBrussee/caveman#1449 ·
Mantenedores costumam responder em até 1 dia
-
bot-found bug priority: P3
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
madenvel/KalinkaPlayer#498 ·
-
bug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
clawsweeper:fix-shape-clear clawsweeper:needs-maintainer-review clawsweeper:needs-product-decision clawsweeper:no-new-fix-pr clawsweeper:source-repro impact:ux-friction issue-rating: 🦞 diamond lobster P2
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
openclaw/gogcli#1291 · 1 comentário · 1 reação ·
Mantenedores costumam responder em até 1 dia