[midPoint] Adding org assignment via User Template
Brad Fardig
brad.fardig at cogitogroup.com.au
Mon Aug 22 13:08:55 CEST 2016
Hi,
Here is my object Template
<?xml version="1.0" encoding="UTF-8"?>
<objectTemplate xmlns="http://midpoint.evolveum.com/xml/ns/public/common/common-3"
xmlns:q="http://prism.evolveum.com/xml/ns/public/query-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:icfs="http://midpoint.evolveum.com/xml/ns/public/connector/icf-1/resource-schema-3"
xmlns:ri="http://midpoint.evolveum.com/xml/ns/public/resource/instance-3"
version="7">
<name>Default User Template</name>
<description>
User Template Object.
This object is used when creating a new account, to set it up as needed.
</description>
<mapping>
<name>END USER REST</name>
<strength>strong</strength>
<expression>
<assignmentTargetSearch>
<targetType>c:RoleType</targetType>
<oid>dd32dd09-b75f-4baa-a767-f47479b54b81</oid>
</assignmentTargetSearch>
</expression>
<target>
<c:path>assignment</c:path>
</target>
</mapping>
<mapping>
<name>map organization</name>
<strength>strong</strength>
<source>
<path>$user/organizationalUnit</path>
</source>
<expression>
<assignmentTargetSearch>
<targetType>c:OrgType</targetType>
<oid>organizationalUnit</oid>
</assignmentTargetSearch>
</expression>
<target>
<c:path>assignment</c:path>
</target>
</mapping>
</objectTemplate>
The org is created via the UI and the organizationalUnit attribute of the user is set to the OID as part of the import from AD.
I don’t get an error, midPoint quite happily creates and assignment to whatever value I into the <oid> tag. E.g. the expression shown will create an assignment to an org called organizationalUnit
Regards,
Brad
From: midPoint [mailto:midpoint-bounces at lists.evolveum.com] On Behalf Of Roman Pudil - AMI Praha a.s.
Sent: Monday, 22 August 2016 8:58 PM
To: midPoint General Discussion <midpoint at lists.evolveum.com>
Subject: Re: [midPoint] Adding org assignment via User Template
Hi Brad,
include your mapping, org definition and response error message.
Thanks!
Regards
Roman Pudil
solution architect
gsm: [+420] 775 663 666
e-mail: roman.pudil at ami.cz <mailto:roman.pudil at ami.cz>
AMI Praha a.s.
Pláničkova 11
162 00 Praha 6
tel./fax: [+420] 274 783 239
web: www.ami.cz <http://www.ami.cz>
<http://www.ami.cz/images/podpis/ami_logo.gif>
<http://www.ami.cz/reseni-a-sluzby/bezpecnost-dat/identity-management>
Textem tohoto e-mailu podepisující neslibuje uzavřít ani neuzavírá za společnost AMI Praha a.s.
jakoukoliv smlouvu. Každá smlouva, pokud bude uzavřena, musí mít výhradně písemnou formu.
------ Původní zpráva ------
Od: "Brad Fardig" <brad.fardig at cogitogroup.com.au <mailto:brad.fardig at cogitogroup.com.au> >
Komu: "midpoint at lists.evolveum.com <mailto:midpoint at lists.evolveum.com> " <midpoint at lists.evolveum.com <mailto:midpoint at lists.evolveum.com> >
Odesláno: 22.8.2016 12:54:47
Předmět: [midPoint] Adding org assignment via User Template
Hi,
I have a user template where I am trying to assign an org based on an oid that is set as part of the user import.
The assignment mapping looks like:
<mapping>
<name>map organization</name>
<strength>strong</strength>
<source>
<path>$user/organizationalUnit</path>
</source>
<expression>
<assignmentTargetSearch>
<targetType>c:OrgType</targetType>
<oid>Need to put organizationalUnit OID here</oid>
</assignmentTargetSearch>
</expression>
<target>
<c:path>assignment</c:path>
</target>
</mapping>
Issue is I can’t get the OID value populated in the <oid> tag of the assignmentTargetSearch
Any help greatly appreciated
Regards,
Brad
This email, and any attachment, is confidential and also privileged. If you have received it in error, please notify me immediately and delete it from your system along with any attachments. You should not copy or use it for any purpose, nor disclose its contents to any other person.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160822/fe64c70f/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 5015 bytes
Desc: not available
URL: <https://lists.evolveum.com/pipermail/midpoint/attachments/20160822/fe64c70f/attachment.bin>
More information about the midPoint
mailing list