Skip to content

Error when turning Android MDM on in Fleet Instance #34776

@PezHub

Description

@PezHub

Fleet version: 4.76+

Web browser and operating system: Any


💥  Actual behavior

Occasionally seeing errors when trying to turn Android MDM on in a Fleet instance. The behavior is inconsistent, sometimes it works.

After authenticating with credentials we see this modal

Image

Server logs show

level=error ts=2025-10-24T15:45:47.91064Z component=http user=unauthenticated method=GET uri="/api/v1/fleet/android_enterprise/connect/Q4TwZlqXP75uyojL0FAmhpjbz8O-QLJY8Q55U9J8GTA=?enterpriseToken=EAHDcJONBeUpot5aMhZVAWmkjSt2pJVq6nDlxAA8fDCEV86fe_R4cVThg6IGwy6iQDlGaiTQr9FKpmMUGK7q6GMSyRuezbiqZ7_J5TcZ_rpLGBtCeTYnDySU" took=2.797074s err="creating enterprise: unexpected status code: 400"

From @JordanMontgomery :
After adding some additional logging to fleet I was able to see that the error being returned by the server was "Access forbidden to Android Management API." which corresponds with 403 being returned from the enterprises.create() call

🛠️ To fix

TODO

🧑‍💻  Steps to reproduce

  1. Add at least one other Fleet instance to your Google Enterprise
  2. On another Fleet instance Turn of Android MDM -
  3. click the Connect button
  4. Google Enterprise login window pops-up
  5. Login with Google Creds
  6. Observe the error displayed in the same login modal

🕯️ More info (optional)

prerequisite: FleetDM acting as the proxy

Metadata

Metadata

Assignees

No one assigned

    Labels

    #g-mdmMDM product group:incomingNew issue in triage process.:releaseReady to write code. Scheduled in a release. See "Making changes" in handbook.bugSomething isn't working as documented~released bugThis bug was found in a stable release.

    Type

    No type

    Projects

    Status

    🥚 Ready

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions