{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/telenor-sverige/json-schema/telenor-sverige-partner-user-info-response-schema.json",
  "title": "PartnerUserInfoResponse",
  "description": "A json wrapper for a list of UserInfo json objects",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/telenor-sverige-partner-catalog-api-api-openapi.yml#/components/schemas/PartnerUserInfoResponse",
  "type": "object",
  "properties": {
    "userInfoList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserInfo"
      }
    }
  },
  "$defs": {
    "AgreementAccess": {
      "type": "object",
      "properties": {
        "agreementId": {
          "type": "string"
        },
        "agreementName": {
          "type": "string"
        },
        "administratorType": {
          "type": "integer",
          "format": "int32"
        },
        "organizationUnits": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        }
      }
    },
    "UserInfo": {
      "type": "object",
      "properties": {
        "uid": {
          "type": "integer",
          "format": "int64",
          "description": "A numerical ID uniquely identifying the user in our system"
        },
        "groupId": {
          "type": "string",
          "description": "An ID uniquely identifying a company in our systems. <br />A company may have multiple departments but the groupId would be the same for all of them"
        },
        "userName": {
          "type": "string",
          "description": "A string identifying a user, which can be i.e. a phone number or T-number"
        },
        "products": {
          "type": "array",
          "description": "The products an agent is associated with.<br/> This will restrict what the agent is authorized to do in our systems",
          "items": {
            "type": "integer",
            "format": "int32"
          }
        },
        "agreementAccesses": {
          "type": "array",
          "description": "The agreements (companies) an administrator user has access to.<br/>administratorType is 0 for full company admin, 1 for partial admin with access only to the departments in organizationUnits list",
          "items": {
            "$ref": "#/$defs/AgreementAccess"
          }
        }
      },
      "description": "A json object representing meta data about user the products he is associated with"
    }
  }
}