{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/GroupUser",
  "title": "GroupUser",
  "type": "object",
  "required": [
    "emailAddress",
    "groupUserAccessRight"
  ],
  "description": "A user in a Power BI workspace",
  "properties": {
    "emailAddress": {
      "type": "string",
      "format": "email",
      "description": "The email address of the user",
      "example": "user@example.com"
    },
    "displayName": {
      "type": "string",
      "description": "The display name of the user",
      "example": "example_value"
    },
    "identifier": {
      "type": "string",
      "description": "The object ID of the user",
      "example": "example_value"
    },
    "graphId": {
      "type": "string",
      "description": "The Microsoft Graph ID of the user",
      "example": "500123"
    },
    "groupUserAccessRight": {
      "type": "string",
      "description": "The access right of the user in the workspace",
      "enum": [
        "Admin",
        "Member",
        "Contributor",
        "Viewer"
      ],
      "example": "Admin"
    },
    "principalType": {
      "type": "string",
      "description": "The principal type",
      "enum": [
        "User",
        "Group",
        "App"
      ],
      "example": "User"
    }
  }
}