[midPoint] UserType - User presentation

Pascal PÉRICHON pascal.perichon at u-paris.fr
Mon Oct 12 10:45:00 CEST 2020


hi,

you can have more information here:

https://wiki.evolveum.com/display/midPoint/User+Interface+Form+Fields#UserInterfaceFormFields-ObjectTemplate

https://lists.evolveum.com/pipermail/midpoint/2017-March/003555.html

you should create a template:

<objectTemplate
xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:xsd="http://www.w3.org/2001/XMLSchema"
     xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"
     xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
xmlns:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
xmlns:icfc="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/connector-schema-3"
     oid="myTemplate">

     <name>this-is-a-template</name>
     <description>
         ATTENTION : this is global settings, i.e. for administrator 
account too !
     </description>

     <!--
         <item>
             <ref>additionalName</ref>
             <displayOrder>100</displayOrder>
             <limitations>
                 <layer>presentation</layer>
                 <access>
                     <read>false</read>
                     <add>false</add>
                     <modify>false</modify>
                 </access>
             </limitations>
         </item>

     Completely hide it:

        <item>
           <c:ref>c:theAttribute</c:ref>
           <limitations>
              <layer>presentation</layer>
              <ignore>true</ignore>
           </limitations>
        </item>

     Some hidden: only hide for adding users but show during modify

        <item>
           <c:ref>c:theAttribute</c:ref>
           <limitations>
              <layer>presentation</layer>
              <access>
                 <read>true</read>
                 <add>false</add>
                 <modify>true</modify>
              </access>
           </limitations>
        </item>
     -->

     <item>
         <ref>telephoneNumber</ref>
         <displayName>Mobile Telephone Number</displayName>
         <displayOrder>100</displayOrder>
         <help>Enter user's Mobile Telephone Number</help>
         <limitations>
             <layer>presentation</layer>
             <access>
                 <read>true</read>
                 <add>false</add>
                 <modify>false</modify>
             </access>
         </limitations>
     </item>
</objectTemplate>



you should add that in systemConfiguration:

     <systemConfiguration>
         ...
         <defaultObjectPolicyConfiguration>
            <objectTemplateRef oid="myTemplate" relation="org:default" 
type="c:ObjectTemplateType"/>
            <type>c:UserType</type>
            <subtype>EMPLOYE-BIATSS</subtype>
        </defaultObjectPolicyConfiguration>
        ...
     </systemConfiguration>


Le 12/10/2020 à 09:16, Ivan Noris via midPoint a écrit :
>
> Hi Andrea,
>
> you can change the displayName, order or help tooltip of any attribute 
> easily, using midPoint object template and "<item>" element.
>
> E.g.
>
>     <item>                <ref>telephoneNumber</ref>
>                 <displayName>Mobile Telephone Number</displayName>
>                 <displayOrder>100</displayOrder>
>                 <help>Enter user's Mobile Telephone Number</help>
>    </item>
>
> Your coleagues probably have also example from the training, but it 
> should be more or less the same.
>
> However I doubt you can change multiplicity of any standard attribute; 
> you need to define your own extension attributes as multivalue.
>
> Best regards,
>
> Ivan
>
> On 9. 10. 2020 18:16, Andrea Picconi via midPoint wrote:
>>
>> Hi,
>>
>> We need to customize the attributes inside the presentation User (not 
>> the Schema Extension XSD):
>>
>> I should put some as multi-value (title and email) and, if is it 
>> possible, change also the displayed name.
>>
>> Do you know how to do it and where? I didn’t find anything inside the 
>> wiki.
>>
>> Best regards,
>>
>> Andrea
>>
>> *Andrea Picconi*
>>
>> /IAM (Identity Access Management)/
>>
>> Innovery
>> Skype: precons
>> T:  +39 06 51963439 (int. 196)
>>
>> Strada Quattro Palazzina A6 c/o Centro Direzionale Milanofiori, 20057 
>> Assago (MI).
>> www.innovery.net <http://www.innovery.net/> | T: +39 06 519 63 439
>>
>>
>> _______________________________________________
>> midPoint mailing list
>> midPoint at lists.evolveum.com
>> https://lists.evolveum.com/mailman/listinfo/midpoint
> -- 
> Ivan Noris
> Senior Identity Engineer
> evolveum.com
>
> _______________________________________________
> midPoint mailing list
> midPoint at lists.evolveum.com
> https://lists.evolveum.com/mailman/listinfo/midpoint
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20201012/9777b124/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 18818 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20201012/9777b124/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image006.png
Type: image/png
Size: 8058 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20201012/9777b124/attachment.png>


More information about the midPoint mailing list