As an EE admin, how do I give someone access to Grafana?

#1

First, you’ll need to navigate to your houston playground, located at:

houston.BASEDOMAIN/playground

Next, navigate to app.BASEDOMAIN/token and grab the auth token.

On the bottom add this to HTTP headers:

{“authorization”:“TOKEN”}

Now run::

query GetUser {
  users(email: "viraj@astronomer.io") {
    uuid
  }
}

query GetAdminGroup {
  groups(entityType: "system") {
    uuid
    label
  }
}

mutation AddAdmin {
  groupAddUser(
    groupUuid: "ID_FROM_GETADMINGROUP"
    userUuid: "ID_FROM_GETUSER"
  ) {
    label
    users {
      emails {
        address
      }
    }
  }
}

use the output from the first two as the inputs as the third.

1 Like
#2

Update: The command for this has changed in Astronomer v0.8:

The new url is now:
https://houston.BASEDOMAIN/v1

query users {
  users(email:"pete@astronomer.io")
  {
    username
    id    

  }
}

Grab the ID, and feed it into the next mutation:

mutation AddAdmin {
  createSystemRoleBinding(
    userId: "USERID"
    role: SYSTEM_ADMIN
  ) {
    id
  }
}
1 Like