[midPoint] Item limitation in object template not working
Jason Everling
jeverling at bshp.edu
Wed Jul 10 19:40:53 CEST 2019
change them to below and it works
<item>
<ref>c:costCenter</ref>
<limitations>
<layer>presentation</layer>
<access>
<read>false</read>
<add>false</add>
<modify>false</modify>
</access>
</limitations>
</item>
<item>
<ref>c:additionalName</ref>
<limitations>
<layer>presentation</layer>
<access>
<read>false</read>
<add>false</add>
<modify>false</modify>
</access>
</limitations>
</item>
JASON
On Wed, Jul 10, 2019 at 10:35 AM Frédéric Lohier <frederic at lohier.org>
wrote:
> Hello,
>
>
>
> I am trying to hide some items in the standard Users schema as indicated
> in the wiki :
> https://wiki.evolveum.com/display/midPoint/User+Interface+Form+Fields#UserInterfaceFormFields-ObjectTemplate
>
>
>
> I tried to include the item limitations directly in the
> defaultUserTemplateRef file referenced in the system configuration, or in a
> separate template file using the includeRef. Even after restarting
> Midpoint, I can still see the fields I am trying to hide. What am I missing?
>
>
>
> I already have a few mappings in the defaultUserTemplateRef file that are
> working fine, so the template file is processed by Midpoint.
>
>
>
> I am using Midpoint 3.9, below is the template file :
>
>
>
> <objectTemplate oid="5c32c917-013a-476e-8f41-50c1ec5eecbc"
>
> xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance'
>
> xmlns='http://midpoint.evolveum.com/xml/ns/public/common/common-3'
>
> xmlns:c='http://midpoint.evolveum.com/xml/ns/public/common/common-3'
>
> xmlns:t='http://prism.evolveum.com/xml/ns/public/types-3'
>
> xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
>
> xmlns:ext="http://midpoint.evolveum.com/xml/ns/story/orgsync/ext">
>
>
>
> <name>Hide some fields from the standard User schema</name>
>
> <item>
>
> <ref>c:costCenter</ref>
>
> <limitations>
>
> <ignore>true</ignore>
>
> </limitations>
>
> </item>
>
> <item>
>
> <ref>c:additionalName</ref>
>
> <limitations>
>
> <ignore>true</ignore>
>
> </limitations>
>
> </item>
>
>
>
> </objectTemplate>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> http://lists.evolveum.com/mailman/listinfo/midpoint
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20190710/4ac2b4e4/attachment.htm>
More information about the midPoint
mailing list