[midPoint] New to midPoint - questions

Al Lilianstrom lilstrom at fnal.gov
Mon Nov 23 14:17:22 CET 2020


Thanks Davy - that was simple.

Now that I know what I was looking for in the manual it makes sense.

Thanks again

  al
--
Al Lilianstrom
Authentication Services

Fermi National Accelerator Laboratory
www.fnal.gov
lilstrom at fnal.gov


________________________________________
From: Davy Priem <davy.priem at vives.be>
Sent: Friday, November 20, 2020 3:25 PM
To: midPoint General Discussion
Cc: Al Lilianstrom
Subject: Re: [midPoint] New to midPoint - questions

Hi,

You should use:
    <target>
        <path>$user/extension/emailAddresses</path>
    </target>

Davy Priem



Op 20 nov. 2020, om 22:07 heeft Al Lilianstrom via midPoint <midpoint at lists.evolveum.com<mailto:midpoint at lists.evolveum.com>> het volgende geschreven:

Hi,

We're taking a close look at midPoint to replace our collection of Perl and PowerShells scripts. I've been working my way through the book getting my 4.2 system reading off a CSV from our HR system and getting it connected to one of my Active Directory domains. Thanks to the wiki and the docs for the examples. CSV input is creating accounts in midPoint. I can see the AD accounts in the connector. I've also done a schema extension to better match the data from HR. So far, so good.

First question. The schema extension is simple (see below the signature). I'm able to manually edit the badgeNumber in the GUI. When I try and write to it from the CSV I get

Cannot determine definition for 'badgeNumber' from user

The inbound rule looks like so

<target>
<c:path>$user/badgeNumber</c:path>
</target>

If I manually edit the entry, add a badgeNumber, save, and then look at the entry in raw mode I see

<extension xmlns:gen497="http://midpoint.evolveum.com/xml/ns/samples/extension-3<https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_samples_extension-2D3&d=DwMFAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=Ccoy53oEM8wW3-vUAuZFE1kez-3vbV9LOfLVoaEsm3A&m=klDyOGDY_ZnPj3ZW7E3ZimaAgo2XshlrMzIrWNbndNU&s=_fhDRWIa08IEMtICqyd7zbZax9UmNex6T3x9EJ0Cg1o&e=>">
   <gen497:badgeNumber>012345</gen497:badgeNumber>
</extension>

Based on this I changed the target to

<target>
   <extension xmlns:gen497="http://midpoint.evolveum.com/xml/ns/samples/extension-3<https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_samples_extension-2D3&d=DwMFAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=Ccoy53oEM8wW3-vUAuZFE1kez-3vbV9LOfLVoaEsm3A&m=klDyOGDY_ZnPj3ZW7E3ZimaAgo2XshlrMzIrWNbndNU&s=_fhDRWIa08IEMtICqyd7zbZax9UmNex6T3x9EJ0Cg1o&e=>">
       <c:path>$user/gen497:badgeNumber</c:path>
   </extension>
</target>

Which gives a

No field 'extension' in class class com.evolveum.midpoint.xml.ns._public.common.common_3.VariableBindingDefinitionType

when saving the XML file.

I haven't been able to find any guidance on writing to these extended attributes so I'd appreciate any guidance.

 thanks, al
--
Al Lilianstrom
Authentication Services

Fermi National Accelerator Laboratory
www.fnal.gov<http://www.fnal.gov>
lilstrom at fnal.gov

# cat /opt/midpoint/midpoint-4.2/var/schema/schema-extensions.xsd
<xsd:schema elementFormDefault="qualified"
           targetNamespace="http://midpoint.evolveum.com/xml/ns/samples/extension-3"<https://urldefense.proofpoint.com/v2/url?u=http-3A__midpoint.evolveum.com_xml_ns_samples_extension-2D3-2522&d=DwQFAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=Ccoy53oEM8wW3-vUAuZFE1kez-3vbV9LOfLVoaEsm3A&m=klDyOGDY_ZnPj3ZW7E3ZimaAgo2XshlrMzIrWNbndNU&s=Jo814lFyascCnS6o9Ubc0fNzZqmmJFnnCBW4twWBQ1c&e=>
           xmlns:tns="http://midpoint.evolveum.com/xml/ns/samples/extension-3"
           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="UserTypeExtensionType">
       <xsd:annotation>
           <xsd:appinfo>
               <a:extension ref="c:UserType"/>
           </xsd:appinfo>
       </xsd:annotation>
       <xsd:sequence>
           <xsd:element name="badgeNumber" type="xsd:string" minOccurs="0" maxOccurs="1">
               <xsd:annotation>
                   <xsd:appinfo>
                       <a:displayName>Badge Number</a:displayName>
                       <a:help>
                       This is the number that is on your badge
                       </a:help>
                   </xsd:appinfo>
               </xsd:annotation>
           </xsd:element>
       </xsd:sequence>
   </xsd:complexType>
</xsd:schema>
_______________________________________________
midPoint mailing list
midPoint at lists.evolveum.com
https://lists.evolveum.com/mailman/listinfo/midpoint<https://urldefense.proofpoint.com/v2/url?u=https-3A__lists.evolveum.com_mailman_listinfo_midpoint&d=DwQFAg&c=gRgGjJ3BkIsb5y6s49QqsA&r=Ccoy53oEM8wW3-vUAuZFE1kez-3vbV9LOfLVoaEsm3A&m=klDyOGDY_ZnPj3ZW7E3ZimaAgo2XshlrMzIrWNbndNU&s=pm-9jZqhQoDEd6okMIaJ3CQ2Eb0UCzERnx28qLZpTnU&e=>



More information about the midPoint mailing list