[midPoint] roleMembership-panel

Markus Calmius markus.calmius at proton.ch
Thu Dec 4 13:53:36 CET 2025


Nevermind!

I managed to solve it in a way I was sure I had tried multiple times...

This is the change that made it work:

<

panelType

>

roleAssignments

</

panelType

>

<

listView

>

<

identifier

>

requestedRolesListView

</

identifier

>

<

includeDefaultColumns

>

true

</

includeDefaultColumns

>

<

type

>

c:AssignmentType

</

type

>

<

dataProvider

xsi

:type

="c:RepositoryAssignmentDataProviderType"

/>

<

collection

>

<

filter

>

<

q

:text

>

(targetRef/@/archetypeRef matches (oid = "493677b0-4d74-4dcc-9f11-50241fd57e43")

OR

targetRef/@/archetypeRef matches (oid = "e6b1440b-cb6f-422b-ba8b-9a6878318a1e")

)

</

q

:text

>

</

filter

>

</

collection

>

</

listView

>

The one thing I had forgotten which rendered an empty list was:

<

dataProvider

xsi

:type

="c:RepositoryAssignmentDataProviderType"

/>

Markus Calmius
Proton AG

On Thursday, 4 December 2025 at 13:41, Markus Calmius via midPoint <midpoint at lists.evolveum.com> wrote:

> Hi!
>
> I'm trying to create a new Panel for users that will display their roles that they can unassign themselves (the ones they have requested)
>
> Ideally, the filter should work on the attribute "requestable" but it doesn't seem to exist in that context (?).
> Not too much of a problem as the requestable roles are of a specific archetype.
>
> I haven't been able to create a filter that works on any other <paneltype> than roleMemberships, so this code "works"
>
> <
>
> panel
>
>>
>
> <
>
> identifier
>
>>
>
> custom-all-requested-roles
>
> </
>
> identifier
>
>>
>
> <
>
> display
>
>>
>
> <
>
> label
>
>>
>
> Requested roles
>
> </
>
> label
>
>>
>
> <
>
> icon
>
>>
>
> <
>
> cssClass
>
>>
>
> fa-regular fa-clock
>
> </
>
> cssClass
>
>>
>
> </
>
> icon
>
>>
>
> </
>
> display
>
>>
>
> <
>
> displayOrder
>
>>
>
> 15
>
> </
>
> displayOrder
>
>>
>
> <
>
> panelType
>
>>
>
> roleMemberships
>
> </
>
> panelType
>
>>
>
> <
>
> listView
>
>>
>
> <
>
> identifier
>
>>
>
> requestedRolesListView
>
> </
>
> identifier
>
>>
>
> <
>
> includeDefaultColumns
>
>>
>
> true
>
> </
>
> includeDefaultColumns
>
>>
>
> <
>
> type
>
>>
>
> c:RoleType
>
> </
>
> type
>
>>
>
> <
>
> collection
>
>>
>
> <
>
> filter
>
>>
>
> <
>
> q
>
> :text
>
>>
>
> (archetypeRef matches (oid = "493677b0-4d74-4dcc-9f11-50241fd57e43")
>
> OR
>
> archetypeRef matches (oid = "e6b1440b-cb6f-422b-ba8b-9a6878318a1e")
>
> )
>
> </
>
> q
>
> :text
>
>>
>
> </
>
> filter
>
>>
>
> </
>
> collection
>
>>
>
> </
>
> listView
>
>>
>
> </
>
> panel
>
>>
>
> but, there seems to be a limit of three roles.
> Is there anyway to change that?
>
> Or, can someone suggest a different way to show all roles with the specific archetypeRef?
>
> Kind regards,
> Markus
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20251204/092616d6/attachment-0001.htm>


More information about the midPoint mailing list