meta {
  name: Get Roles
  type: http
  seq: 2
}

get {
  url: {{urlv2}}/api/auth/getuseraccess
  body: none
  auth: inherit
}

headers {
  Content-Type: application/json
  Cookie: {{session_cookie}}
}

body:json {
  {
    "username": "matthes01",
    "password": "{{v2Password}}"
  }
}

script:post-response {
  bru.setEnvVar("jwtV2",res.body.token)
}

settings {
  encodeUrl: true
  timeout: 0
}
