feat: [OCISDEV-234] add configurable display attributes

Added new configuration options `UserSearchDisplayedAttributes` which
allows to configure the attributes that are displayed in the user search results.
Also deprecate the `ShowUserEmailInResults` configuration option.
This commit is contained in:
Lukas Hirt
2025-09-26 11:22:18 +02:00
parent eb469d8ec3
commit c9d308f232
8 changed files with 269 additions and 49 deletions

View File

@@ -272,12 +272,17 @@ Feature: edit/search user including email
"items": {
"type": "object",
"required": [
"attributes",
"displayName",
"id",
"mail",
"userType"
],
"properties": {
"attributes": {
"type": "array",
"maxItems": 1,
"minItems": 1
},
"displayName": {
"const": "Alice Hansen"
},
@@ -285,9 +290,6 @@ Feature: edit/search user including email
"type": "string",
"pattern": "^%user_id_pattern%$"
},
"mail": {
"const": "alice@example.org"
},
"userType": {
"const": "Member"
}
@@ -320,12 +322,17 @@ Feature: edit/search user including email
"items": {
"type": "object",
"required": [
"attributes",
"displayName",
"id",
"mail",
"userType"
],
"properties": {
"attributes": {
"type": "array",
"maxItems": 1,
"minItems": 1
},
"displayName": {
"const": "Alice Hansen"
},
@@ -364,12 +371,17 @@ Feature: edit/search user including email
"items": {
"type": "object",
"required": [
"attributes",
"displayName",
"id",
"mail",
"userType"
],
"properties": {
"attributes": {
"type": "array",
"maxItems": 1,
"minItems": 1
},
"displayName": {
"const": "Alice Hansen"
},
@@ -415,12 +427,17 @@ Feature: edit/search user including email
{
"type": "object",
"required": [
"attributes",
"displayName",
"id",
"mail",
"userType"
],
"properties": {
"attributes": {
"type": "array",
"maxItems": 1,
"minItems": 1
},
"displayName": {
"const": "Alice Hansen"
},
@@ -439,12 +456,17 @@ Feature: edit/search user including email
{
"type": "object",
"required": [
"attributes",
"displayName",
"id",
"mail",
"userType"
],
"properties": {
"attributes": {
"type": "array",
"maxItems": 1,
"minItems": 1
},
"displayName": {
"const": "Alice Murphy"
},