{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/acceldata/json-schema/acceldata-group-details-schema.json",
  "title": "GroupDetails",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acceldata-group-management-api-openapi.yml#/components/schemas/GroupDetails",
  "type": "object",
  "required": [
    "domainRoleMappings",
    "id",
    "members",
    "name",
    "roles"
  ],
  "properties": {
    "attributes": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      }
    },
    "createdAt": {
      "type": "integer"
    },
    "createdBy": {
      "type": [
        "string",
        "null"
      ]
    },
    "description": {
      "type": [
        "string",
        "null"
      ]
    },
    "domainRoleMappings": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/EntityDomainRoleMapping"
      }
    },
    "id": {
      "type": "string"
    },
    "members": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/UserRepresentation"
      }
    },
    "name": {
      "type": "string"
    },
    "roles": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Role"
      }
    },
    "updatedAt": {
      "type": "integer"
    },
    "updatedBy": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "$defs": {
    "CredentialRepresentation": {
      "type": "object",
      "title": "CredentialRepresentation",
      "required": [
        "id",
        "type",
        "userLabel",
        "createdDate",
        "secretData",
        "credentialData",
        "priority",
        "value",
        "temporary",
        "device",
        "hashedSaltedValue",
        "salt",
        "hashIterations",
        "counter",
        "algorithm",
        "digits",
        "period",
        "config",
        "federationLink"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "type": {
          "type": "string"
        },
        "userLabel": {
          "type": "string"
        },
        "createdDate": {
          "type": "integer"
        },
        "secretData": {
          "type": "string"
        },
        "credentialData": {
          "type": "string"
        },
        "priority": {
          "type": "integer"
        },
        "value": {
          "type": "string"
        },
        "temporary": {
          "type": "boolean"
        },
        "device": {
          "type": "string"
        },
        "hashedSaltedValue": {
          "type": "string"
        },
        "salt": {
          "type": "string"
        },
        "hashIterations": {
          "type": "integer"
        },
        "counter": {
          "type": "integer"
        },
        "algorithm": {
          "type": "string"
        },
        "digits": {
          "type": "integer"
        },
        "period": {
          "type": "integer"
        },
        "config": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        },
        "federationLink": {
          "type": "string"
        }
      }
    },
    "EntityDomainRoleMapping": {
      "type": "object",
      "title": "EntityDomainRoleMapping",
      "required": [
        "domainId",
        "entityType",
        "roleId",
        "roleType"
      ],
      "properties": {
        "domainId": {
          "type": "integer"
        },
        "entityId": {
          "type": [
            "string",
            "null"
          ]
        },
        "entityType": {
          "type": "string",
          "enum": [
            "USER",
            "USER_GROUP"
          ]
        },
        "id": {
          "type": "integer"
        },
        "roleId": {
          "type": "integer"
        },
        "roleType": {
          "type": "string",
          "enum": [
            "FEATURE_ROLE",
            "RESOURCE_ROLE"
          ]
        }
      }
    },
    "FederatedIdentityRepresentation": {
      "type": "object",
      "title": "FederatedIdentityRepresentation",
      "required": [
        "identityProvider",
        "userId",
        "userName"
      ],
      "properties": {
        "identityProvider": {
          "type": "string"
        },
        "userId": {
          "type": "string"
        },
        "userName": {
          "type": "string"
        }
      }
    },
    "Metadata": {
      "type": "object",
      "title": "Metadata",
      "required": [
        "createdAt",
        "createdBy",
        "numberOfDirectGroupsAssigned",
        "numberOfDirectUsersAssigned",
        "numberOfDomainUserGroupAssigned"
      ],
      "properties": {
        "createdAt": {
          "type": "integer"
        },
        "createdBy": {
          "type": "string"
        },
        "numberOfDirectGroupsAssigned": {
          "type": "integer"
        },
        "numberOfDirectUsersAssigned": {
          "type": "integer"
        },
        "numberOfDomainUserGroupAssigned": {
          "type": "integer"
        },
        "updatedAt": {
          "type": "integer"
        },
        "updatedBy": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "Role": {
      "type": "object",
      "title": "Role",
      "required": [
        "id",
        "name"
      ],
      "properties": {
        "default": {
          "type": "boolean"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "id": {
          "type": "integer"
        },
        "metadata": {
          "oneOf": [
            {
              "$ref": "#/$defs/Metadata"
            },
            {
              "type": "null"
            }
          ]
        },
        "name": {
          "type": "string"
        },
        "type": {
          "type": [
            "string",
            "null"
          ],
          "enum": [
            "FEATURE_ROLE",
            "RESOURCE_ROLE"
          ]
        }
      }
    },
    "SocialLinkRepresentation": {
      "type": "object",
      "title": "SocialLinkRepresentation",
      "required": [
        "socialProvider",
        "socialUserId",
        "socialUsername"
      ],
      "properties": {
        "socialProvider": {
          "type": "string"
        },
        "socialUserId": {
          "type": "string"
        },
        "socialUsername": {
          "type": "string"
        }
      }
    },
    "UserConsentRepresentation": {
      "type": "object",
      "title": "UserConsentRepresentation",
      "required": [
        "clientId",
        "grantedClientScopes",
        "createdDate",
        "lastUpdatedDate",
        "grantedRealmRoles"
      ],
      "properties": {
        "clientId": {
          "type": "string"
        },
        "grantedClientScopes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "createdDate": {
          "type": "integer"
        },
        "lastUpdatedDate": {
          "type": "integer"
        },
        "grantedRealmRoles": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    },
    "UserRepresentation": {
      "type": "object",
      "title": "UserRepresentation",
      "required": [
        "self",
        "origin",
        "createdTimestamp",
        "totp",
        "federationLink",
        "serviceAccountClientId",
        "credentials",
        "disableableCredentialTypes",
        "requiredActions",
        "federatedIdentities",
        "realmRoles",
        "clientRoles",
        "clientConsents",
        "notBefore",
        "applicationRoles",
        "socialLinks",
        "groups",
        "access",
        "id",
        "username",
        "firstName",
        "lastName",
        "email",
        "emailVerified",
        "attributes",
        "enabled"
      ],
      "properties": {
        "self": {
          "type": "string"
        },
        "origin": {
          "type": "string"
        },
        "createdTimestamp": {
          "type": "integer"
        },
        "totp": {
          "type": "boolean"
        },
        "federationLink": {
          "type": "string"
        },
        "serviceAccountClientId": {
          "type": "string"
        },
        "credentials": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/CredentialRepresentation"
          }
        },
        "disableableCredentialTypes": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "requiredActions": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "federatedIdentities": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FederatedIdentityRepresentation"
          }
        },
        "realmRoles": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "clientRoles": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "clientConsents": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/UserConsentRepresentation"
          }
        },
        "notBefore": {
          "type": "integer"
        },
        "applicationRoles": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "socialLinks": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/SocialLinkRepresentation"
          }
        },
        "groups": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "access": {
          "type": "object",
          "additionalProperties": {
            "type": "boolean"
          }
        },
        "id": {
          "type": "string"
        },
        "username": {
          "type": "string"
        },
        "firstName": {
          "type": "string"
        },
        "lastName": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "emailVerified": {
          "type": "boolean"
        },
        "attributes": {
          "type": "object",
          "additionalProperties": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        },
        "enabled": {
          "type": "boolean"
        }
      }
    }
  }
}