managed.json revision e9a7f8cfa4eb8604182de8ee768fc0d4c5b36384
{
"objects" : [
{
"name" : "user",
"onCreate" : {
"type" : "text/javascript",
"file" : "ui/onCreate-user-set-default-fields.js"
},
"onDelete" : {
"type" : "text/javascript",
"file" : "ui/onDelete-user-cleanup.js"
},
"properties" : [
{
"name" : "securityAnswer",
"encryption" : {
"key" : "openidm-sym-default"
},
"scope" : "private"
},
{
"name" : "password",
"encryption" : {
"key" : "openidm-sym-default"
},
"scope" : "private"
},
{
"name" : "effectiveRoles",
"type" : "virtual",
"onRetrieve" : {
"type" : "text/javascript",
"file" : "roles/effectiveRoles.js",
"rolesPropName" : "roles"
}
},
{
"name" : "effectiveAssignments",
"type" : "virtual",
"onRetrieve" : {
"type" : "text/javascript",
"file" : "roles/effectiveAssignments.js",
"effectiveRolesPropName" : "effectiveRoles"
}
}
],
"schema" : {
"id" : "http://jsonschema.net",
"title" : "User",
"viewable" : true,
"$schema" : "http://json-schema.org/draft-03/schema",
"order" : [
"userName",
"givenName",
"sn",
"mail",
"accountStatus",
"telephoneNumber",
"postalAddress",
"address2",
"city",
"postalCode",
"country",
"stateProvince",
"roles"
],
"properties" : {
"mail" : {
"title" : "Email Address",
"viewable" : true,
"type" : "string",
"searchable" : true
},
"sn" : {
"title" : "Last Name",
"viewable" : true,
"type" : "string",
"searchable" : true
},
"address2" : {
"type" : "string",
"title" : "Address 2",
"viewable" : true
},
"givenName" : {
"title" : "First Name",
"viewable" : true,
"type" : "string",
"searchable" : true
},
"city" : {
"type" : "string",
"title" : "City",
"viewable" : true
},
"country" : {
"type" : "string",
"title" : "Country",
"viewable" : true
},
"postalCode" : {
"type" : "string",
"title" : "Postal Code",
"viewable" : true
},
"accountStatus" : {
"title" : "Status",
"viewable" : true,
"type" : "string",
"searchable" : true
},
"roles" : {
"description" : "",
"title" : "Roles",
"viewable" : true,
"type" : "array",
"items" : {
"type" : "string",
"resourceCollection" : {
"path" : "managed/roles",
"query" : {
"queryFilter" : "",
"fields" : [ ],
"sortKeys" : [ ]
}
}
}
},
"telephoneNumber" : {
"type" : "string",
"title" : "Mobile Phone",
"viewable" : true
},
"stateProvince" : {
"type" : "string",
"title" : "State/Province",
"viewable" : true
},
"postalAddress" : {
"type" : "string",
"title" : "Address 1",
"viewable" : true
},
"userName" : {
"title" : "Username",
"viewable" : true,
"type" : "string",
"searchable" : true
}
},
"type" : "object",
"required" : [
"userName",
"givenName",
"sn",
"mail"
]
}
},
{
"name" : "role",
"postCreate" : {
"type" : "text/javascript",
"file" : "roles/update-users-of-role.js"
},
"postUpdate" : {
"type" : "text/javascript",
"file" : "roles/update-users-of-role.js"
},
"postDelete" : {
"type" : "text/javascript",
"file" : "roles/update-users-of-role.js"
},
"onDelete" : {
"type" : "text/javascript",
"file" : "roles/onDelete-roles.js"
},
"schema" : {
"$schema" : "http://forgerock.org/json-schema#",
"type" : "object",
"title" : "Role",
"description" : "",
"properties" : {
"_id" : {
"description" : "",
"title" : "Name",
"viewable" : true,
"searchable" : true,
"type" : "string"
},
"properties" : {
"description" : "",
"title" : "Properties",
"viewable" : true,
"searchable" : false,
"type" : "object",
"properties" : {
"description" : {
"description" : "",
"title" : "Description",
"viewable" : true,
"searchable" : false,
"type" : "string"
}
},
"required" : [
"description"
],
"order" : [
"description"
]
},
"assignments" : {
"description" : "",
"title" : "Assignments",
"viewable" : true,
"searchable" : false,
"type" : "string"
}
},
"required" : [
"_id"
],
"order" : [
"_id",
"properties",
"assignments"
]
}
}
]
}