[midPoint] UserType - User presentation

Andrea Picconi andrea.picconi at innovery.net
Mon Oct 12 14:13:48 CEST 2020


Hi,

thanks for the info, I'll try as soon as possible!
Thanks again,

Andrea

From: midPoint <midpoint-bounces at lists.evolveum.com> On Behalf Of Pascal PERICHON via midPoint
Sent: Monday, October 12, 2020 10:45 AM
To: midpoint at lists.evolveum.com
Cc: Pascal PÉRICHON <pascal.perichon at u-paris.fr>
Subject: Re: [midPoint] UserType - User presentation


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"<http://midpoint.evolveum.com/xml/ns/public/common/common-3>
    xmlns:c="http://midpoint.evolveum.com/xml/ns/public/common/common-3"<http://midpoint.evolveum.com/xml/ns/public/common/common-3>
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<http://www.w3.org/2001/XMLSchema-instance>
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"<http://www.w3.org/2001/XMLSchema>
    xmlns:q="http://prism.evolveum.com/xml/ns/public/query-3"<http://prism.evolveum.com/xml/ns/public/query-3>
    xmlns:t="http://prism.evolveum.com/xml/ns/public/types-3"<http://prism.evolveum.com/xml/ns/public/types-3>
    xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"<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"<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"<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):

[cid:image001.jpg at 01D6A0A1.DBF6ED20]

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<mailto: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<mailto: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/2d4f8334/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 18818 bytes
Desc: image001.jpg
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20201012/2d4f8334/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 8058 bytes
Desc: image002.png
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20201012/2d4f8334/attachment.png>


More information about the midPoint mailing list