Skip to content

Commit

Permalink
access request doc update (search customization)
Browse files Browse the repository at this point in the history
  • Loading branch information
1azyman committed Jul 4, 2023
1 parent 0ee1208 commit b1bf88f
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions docs/admin-gui/request-access/index.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,39 @@ There are two type of tiles:
* Myself - to select user currently logged in
* Group - defined by collection or query filter. Group allow to select one or more users via autocomplete text field or by clicking *Select manually* button.

Autocomplete search withing group is done using `user/name` property with `norm` poly-string matcher by default.

Concrete search behaviour can be customized using `group/searchFilterTemplate` where filter with expression can be used.
Search result labels can be also configured using expression defined in `group/userDisplayName`.
Minimum number of characters needed to start autocomplete can be configured using `group/autocompleteMinChars`.

In following example filter template will create substring search `givenName like '%King *<VALUE>*%'`.
Results will be displayed in format `<USER_NAME> (<USER_OID>)`

[source, xml]
----
<group>
<searchFilterTemplate>
<q:substring>
<q:path>givenName</q:path>
<expression>
<script>
<code>
return "King " + input
</code>
</script>
</expression>
</q:substring>
</searchFilterTemplate>
<userDisplayName>
<script>
<code>return basic.stringify(object.name) + " (" + object.oid + ")"</code>
</script>
</userDisplayName>
<autocompleteMinChars>2</autocompleteMinChars>
</group>
----

.Selection from group of users
image::step-1-poi-group.png[Selection from group of users,100%]

Expand Down Expand Up @@ -99,6 +132,8 @@ Collection of objects can be used to create custom menu item representing specif
This is custom menu item that uses search for another user and list his assignments.
Roles of teammate option can be disabled via configuration.

Search for teammate will create filter using `user/name` property with `norm` poly-string matcher by default.

.Roles of teammate
image::step-3-roles-of-teammate.png[Roles of teammate,100%]

Expand Down

0 comments on commit b1bf88f

Please sign in to comment.