[midPoint] No definition for 'manager' in user

Sean R Penndorf srpenn at us.ibm.com
Wed Jan 17 18:38:45 CET 2018


After backing out my previous attempts, I tried this and it worked!
Thanks Wojciech!

------------------
Sean Penndorf
SaaS Operational Services (SOS) - ID Management
IBM Cloud
srpenn at us.ibm.com
Office: 248-552-4791   TL  623-9966





From:   Wojciech Staszewski <wojciech.staszewski at diagnostyka.pl>
To:     midpoint at lists.evolveum.com
Date:   01/16/2018 05:26 PM
Subject:        Re: [midPoint] No definition for 'manager' in user
Sent by:        "midPoint" <midpoint-bounces at lists.evolveum.com>



Or just "extension/manager" as below:
<attribute>
            <c:ref>ri:manager</c:ref>
            <inbound>
               <authoritative>true</authoritative>
               <exclusive>false</exclusive>
               <strength>normal</strength>
               <target>
                  <c:path>extension/manager</c:path>
               </target>
            </inbound>
</attribute>

On 16.01.2018 20:22, Sean R Penndorf wrote:
Unfortunately that did not work.
Any other ideas?

------------------
Sean Penndorf
SaaS Operational Services (SOS) - ID Management
IBM Cloud
srpenn at us.ibm.com
Office: 248-552-4791   TL  623-9966





From:        Ivan Noris <ivan.noris at evolveum.com>
To:        midpoint at lists.evolveum.com
Date:        01/16/2018 11:39 AM
Subject:        Re: [midPoint] No definition for 'manager' in user
Sent by:        "midPoint" <midpoint-bounces at lists.evolveum.com>



Hi Sean,
the extension looks ok.
The inbound is incorrect.
It should look similar to this:
<attribute>
  <ref>ri:cn</ref>
. . .
  <inbound>
  <expression>
  ... <!-- probably you need to do something here from the resource 
attribute -->
  </expression>
    <target>$user/extension/manager</target> <!-- or 
$user/extension/ext:manager if ext namespace prefix is defined -->
  </inbound>
</attribute>
This artificial example takes "cn" attribute from LDAP and copies it to 
$user/extension/manager.
Best regards,
Ivan

On 16.01.2018 16:24, Sean R Penndorf wrote:
Hi Community,

Clearly, I'm missing something simple here....running Midpoint 3.7
I have an extended attribute "manager", it shows up in the GUI when 
looking at User properties.
But I keep getting an error with my inbound mapping:  "No definition for 
'manager' in user."
I've tried a number of variations in the inbound mapping, but I can't get 
the field to populate.
Any assistance is greatly appreciated.


** Extended Attribute: **

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!-- This is a runtime schema that defines data types used in the
<extension> part of the objects. It is used in some built-in samples. -->
<xsd:schema elementFormDefault="qualified"
            targetNamespace="http://sos.ibm.com/xml/ns/sosSchema"
            xmlns:tns="http://sos.ibm.com/xml/ns/sosSchema"
            xmlns:a="http://prism.evolveum.com/xml/ns/public/annotation-3"
            xmlns:c="
http://midpoint.evolveum.com/xml/ns/public/common/common-3"
            xmlns:xsd="http://www.w3.org/2001/XMLSchema">

    <xsd:complexType name="UserExtensionType">
        <xsd:annotation>
            <xsd:appinfo>
                <a:extension ref="c:UserType"/>
            </xsd:appinfo>
        </xsd:annotation>
        <xsd:sequence>
            <xsd:element name="manager" type="xsd:string" minOccurs="0" 
maxOccurs="1">
                <xsd:annotation>
                    <xsd:appinfo>
                        <a:indexed>true</a:indexed>
                        <a:displayName>manager</a:displayName>
                    </xsd:appinfo>
                </xsd:annotation>
            </xsd:element>
        </xsd:sequence>
    </xsd:complexType>
</xsd:schema>


** Inbound Mapping: **

         <attribute id="9">
            <c:ref>ri:manager</c:ref>
            <matchingRule xmlns:gen316="
http://prism.evolveum.com/xml/ns/public/matching-rule-3
">gen316:distinguishedName</matchingRule>
            <tolerant>true</tolerant>
            <exclusiveStrong>true</exclusiveStrong>
            <fetchStrategy>explicit</fetchStrategy>
            <inbound id="10">
               <authoritative>true</authoritative>
               <exclusive>true</exclusive>
               <strength>strong</strength>
               <expression>
                  <c:path xmlns:ext="http://sos.ibm.com/xml/ns/sosSchema"
                          xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
                          
xsi:type="t:ItemPathType">$user/extension/ext:manager</c:path>
               </expression>
               <target>
                  <c:path xmlns:ext="http://sos.ibm.com/xml/ns/sosSchema
">ext:manager</c:path>
               </target>
            </inbound>
         </attribute>









------------------
Sean Penndorf
SaaS Operational Services (SOS) - ID Management
IBM Cloud
srpenn at us.ibm.com
Office: 248-552-4791   TL  623-9966




_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
http://lists.evolveum.com/mailman/listinfo/midpoint


-- 
Ivan Noris
Senior Identity Engineer
evolveum.com

_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.evolveum.com_mailman_listinfo_midpoint&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=mxBoJ1lXgvvfo5l-Tjy10yyDc2y8S5YU7eMgXL9B6BQ&s=YqKtO-IFuxFGGiIQqHy-7o7tAszxg427o-T2utRX374&e=






_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
http://lists.evolveum.com/mailman/listinfo/midpoint


-- 
Wojciech Staszewski
Administrator Systemów Sieciowych
tel. kom: 663 680 236
www.diagnostyka.pl
Diagnostyka Sp. z o. o.
ul. Prof. M. Życzkowskiego 16, 31-864 Kraków
Numer KRS: 0000381559 (Sąd Rejonowy dla Krakowa-Śródmieścia w Krakowie, XI 
Wydział Gospodarczy KRS)
NIP: 675-12-65-009; REGON: 356366975
Kapitał zakładowy: 33 756 500 zł.

Pomyśl o środowisku zanim wydrukujesz ten e-mail.
_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.evolveum.com_mailman_listinfo_midpoint&d=DwIGaQ&c=jf_iaSHvJObTbx-siA1ZOg&r=qEACHutvsppyidQwf1kYntDY-ZKom0n1kiWqpNpwVXg&m=0NyyT20Jic5wSOtpsSnc5Smp14l43A3wPrfOkc9x23c&s=kPclXy26IJ7-JRAJOhEpf8C1aACEtnddxTY3xsT7E7o&e=





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20180117/884732ef/attachment.htm>


More information about the midPoint mailing list